@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

    :root {
        --primary-red: #e63946;
        --primary-red-light: #f8d7da;
        --primary-red-dark: #c1121f;
        --neutral-white: #ffffff;
        --neutral-light: #f8f9fa;
        --neutral-dark: #343a40;
        --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
        --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

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

    body {
        font-family: 'Inter', sans-serif;
        background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        position: relative;
        overflow-x: hidden;
    }

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:
            radial-gradient(circle at 10% 20%, rgba(230, 57, 70, 0.05) 0%, transparent 20%),
            radial-gradient(circle at 90% 80%, rgba(230, 57, 70, 0.05) 0%, transparent 20%),
            radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.03) 0%, transparent 30%);
        z-index: -1;
    }

    .login-container {
        width: 100%;
        max-width: 460px;
        animation: fadeIn 0.8s ease-out;
    }

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

    .login-card {
        background: var(--neutral-white);
        border-radius: 24px;
        padding: 48px 40px;
        box-shadow: var(--shadow-medium);
        border: 1px solid rgba(230, 57, 70, 0.1);
        position: relative;
        overflow: hidden;
    }

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    }

    .logo-container {
        text-align: center;
        margin-bottom: 30px;
    }

    .logo-svg {
        width: 160px; 
        height: auto;
        display: block;
        margin: 0 auto 20px auto;
    }

    .login-title {
        font-size: 24px;
        margin-bottom: 10px;
        color: #333;
    }

    .login-subtitle {
        font-size: 14px;
        color: #666;
        margin-top: 0;
    }

    .login-title {
        font-size: 28px;
        font-weight: 700;
        color: var(--neutral-dark);
        margin-bottom: 8px;
    }

    .login-subtitle {
        font-size: 14px;
        color: #6c757d;
        font-weight: 400;
    }

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

    .form-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: var(--neutral-dark);
        margin-bottom: 8px;
    }

    .input-container {
        position: relative;
    }

    .form-input {
        width: 100%;
        padding: 16px 20px 16px 48px;
        font-size: 15px;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        background-color: var(--neutral-light);
        transition: all 0.3s ease;
        outline: none;
        color: var(--neutral-dark);
    }

    .form-input:focus {
        border-color: var(--primary-red);
        background-color: white;
        box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
    }

    .input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #adb5bd;
        font-size: 18px;
        transition: color 0.3s ease;
    }

    .form-input:focus + .input-icon {
        color: var(--primary-red);
    }

    .input-status {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .input-status.show {
        opacity: 1;
    }

    .status-success {
        color: #2ecc71;
    }

    .status-error {
        color: #e74c3c;
    }

    .error-message {
        font-size: 13px;
        color: #e74c3c;
        margin-top: 6px;
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .error-message.show {
        opacity: 1;
        height: auto;
        margin-top: 8px;
    }

    .form-input.error {
        border-color: #e74c3c;
        background-color: rgba(231, 76, 60, 0.05);
    }

    .form-input.success {
        border-color: #2ecc71;
        background-color: rgba(46, 204, 113, 0.05);
    }

    .remember-forgot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 32px;
    }

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

    .checkbox-container {
        display: flex;
        align-items: center;
        position: relative;
        cursor: pointer;
    }

    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .checkmark {
        height: 20px;
        width: 20px;
        background-color: #f1f3f5;
        border: 2px solid #dee2e6;
        border-radius: 6px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .checkbox-container input:checked ~ .checkmark {
        background-color: var(--primary-red);
        border-color: var(--primary-red);
    }

    .checkmark:after {
        content: "";
        display: none;
        color: white;
        font-size: 14px;
    }

    .checkbox-container input:checked ~ .checkmark:after {
        display: block;
        content: "✓";
    }

    .checkbox-label {
        margin-left: 10px;
        font-size: 14px;
        color: #495057;
    }

    .forgot-password {
        font-size: 14px;
        color: var(--primary-red);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .forgot-password:hover {
        color: var(--primary-red-dark);
        text-decoration: underline;
    }

    .submit-btn {
        width: 100%;
        padding: 18px;
        background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
        margin-bottom: 30px;
    }

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
    }

    .submit-btn:active {
        transform: translateY(-1px);
    }

    .divider {
        display: flex;
        align-items: center;
        margin-bottom: 30px;
    }

    .divider-line {
        flex-grow: 1;
        height: 1px;
        background-color: #e9ecef;
    }

    .divider-text {
        padding: 0 15px;
        color: #6c757d;
        font-size: 14px;
    }

    .register-link {
        text-align: center;
        font-size: 15px;
        color: #495057;
    }

    .register-link a {
        color: var(--primary-red);
        font-weight: 600;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .register-link a:hover {
        color: var(--primary-red-dark);
        text-decoration: underline;
    }

    .alert {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 12px;
        animation: slideDown 0.4s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .alert-error {
        background-color: rgba(231, 76, 60, 0.1);
        color: #c0392b;
        border-left: 4px solid #e74c3c;
    }

    .alert-success {
        background-color: rgba(46, 204, 113, 0.1);
        color: #27ae60;
        border-left: 4px solid #2ecc71;
    }

    .alert-icon {
        font-size: 18px;
    }

    .password-toggle {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #adb5bd;
        cursor: pointer;
        font-size: 18px;
        transition: color 0.3s ease;
    }

    .password-toggle:hover {
        color: var(--primary-red);
    }

    @media (max-width: 576px) {
        .login-card {
            padding: 40px 24px;
            border-radius: 20px;
        }

        .remember-forgot {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }

        .login-title {
            font-size: 24px;
        }
    }