* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #ff683a 0%, #ff8a65 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Animated background shapes - desktop only */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.shape2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: 0px;
    animation-delay: 5s;
}

.shape3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: -75px;
    animation-delay: 10s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

.container {
    display: flex;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 90%;
    max-width: 1100px;
    min-height: 600px;
    z-index: 10;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Panel - Desktop Only */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #ff683a 0%, #ff8a65 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
}

.left-panel::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.left-panel::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.logo-section {
    text-align: center;
    z-index: 1;
    margin-bottom: 40px;
}

.logo {
    width: 180px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-weight: bold;
    color: #ff683a;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile logo - shown only on mobile */
.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 30px;
}

.mobile-logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #ff683a;
    margin-bottom: 8px;
}

.mobile-logo-subtitle {
    font-size: 14px;
    color: #999;
}

.welcome-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.welcome-text p {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.partner-badge svg {
    margin-right: 8px;
}

.success-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.success-badge svg {
    margin-right: 8px;
}

/* Right Panel */
.right-panel {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.login-form {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #ff683a;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 104, 58, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 42px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ff683a;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.forgot-link {
    color: #ff683a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.forgot-link:hover {
    opacity: 0.8;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff683a 0%, #ff8a65 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 104, 58, 0.3);
}

.error-message {
    color: #ff3333;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-btn.loading .btn-text {
    display: none;
}

.login-btn.loading .spinner {
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        background: white;
        padding: 20px;
    }

    /* Hide desktop elements */
    .bg-shape,
    .left-panel {
        display: none;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        background: transparent;
    }

    .right-panel {
        padding: 0;
        background: transparent;
    }

    .mobile-logo {
        display: block;
    }

    .login-form {
        max-width: 100%;
    }

    .form-header {
        margin-bottom: 30px;
    }

    .form-header h2 {
        font-size: 28px;
    }

    .form-header p {
        font-size: 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 10px;
    }

    .password-toggle {
        top: 40px;
        right: 14px;
    }

    .form-options {
        margin-bottom: 24px;
    }

    .remember-me label,
    .forgot-link {
        font-size: 13px;
    }

    .login-btn {
        padding: 14px;
        border-radius: 10px;
    }
}

/* Small mobile adjustments */
@media (max-width: 375px) {
    .mobile-logo-text {
        font-size: 24px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .form-header p {
        font-size: 14px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .forgot-link {
        align-self: flex-start;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 95%;
        max-width: 900px;
    }

    .left-panel,
    .right-panel {
        padding: 40px;
    }

    .welcome-text h1 {
        font-size: 32px;
    }

    .form-header h2 {
        font-size: 28px;
    }
}

.password-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}
