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

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    height: 100vh;
    overflow: hidden;
}

.login-page {
    display: flex;
    height: 100vh;
}

.brand-side {
    width: 70%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.brand-content {
    text-align: center;
    color: white;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.logo-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-box i {
    font-size: 32px;
    color: white;
    display: block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
}

.brand-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.brand-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 280px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 80px;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-card i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

.feature-card span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: center;
}

.form-side {
    width: 30%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.form-container {
    width: 100%;
    max-width: 280px;
}

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

.header-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.header-logo i {
    font-size: 20px;
    color: white;
    display: block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

.form-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.input-field {
    margin-bottom: 18px;
}

.input-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    width: 100%;
    height: 44px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9ca3af;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    padding: 0 44px 0 36px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    display: block;
}

.input-wrapper input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-wrapper input:focus + .input-icon {
    color: #3b82f6;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.eye-toggle:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.eye-toggle i {
    font-size: 13px;
    display: block;
    width: 13px;
    height: 13px;
    line-height: 13px;
    text-align: center;
}

.login-button {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button.loading .btn-text {
    opacity: 0;
}

.login-button.loading .btn-spinner {
    opacity: 1;
}

.btn-text {
    transition: opacity 0.2s ease;
    display: block;
}

.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.2s ease;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.error-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 13px;
}

.error-alert i {
    font-size: 14px;
    flex-shrink: 0;
    display: block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
}

.field-error {
    margin-top: 4px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 400;
}

.support-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.support-info i {
    color: #3b82f6;
    font-size: 14px;
    flex-shrink: 0;
    display: block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
}

.support-info span {
    font-size: 12px;
    color: #64748b;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
    }

    .brand-side {
        width: 100%;
        height: 35%;
        padding: 20px;
    }

    .brand-content h1 {
        font-size: 36px;
    }

    .brand-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .features-grid {
        gap: 12px;
        max-width: 240px;
    }

    .feature-card {
        padding: 16px 12px;
        min-height: 70px;
    }

    .form-side {
        width: 100%;
        height: 65%;
        padding: 25px 20px;
    }

    .form-container {
        max-width: 300px;
    }

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

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

@media (max-width: 480px) {
    .brand-side {
        height: 30%;
        padding: 15px;
    }

    .brand-content h1 {
        font-size: 28px;
    }

    .form-side {
        height: 70%;
        padding: 20px 15px;
    }

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

    .input-field {
        margin-bottom: 16px;
    }

    .input-wrapper,
    .login-button {
        height: 42px;
    }
}