body {
    background-color: #FFF5F2; /* Light creamy/pinkish background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
    transition: opacity 0.2s ease;
}

.login-card.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.logo-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.logo {
    height: 80px; /* Adjust based on actual logo aspect ratio */
    width: auto;
}

/* Hide fallback text if we rely on image, or style it if image is just icon. 
   Plan: Use image only as per typical logo files. */
.logo-text {
    display: none; 
}

.welcome-title {
    font-size: 24px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
}

.login-alerts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.login-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.5;
}

.login-alert--success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.login-alert--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.login-alert__icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.login-alert--success .login-alert__icon {
    background: #16a34a;
    color: #fff;
}

.login-alert--error .login-alert__icon {
    background: #dc2626;
    color: #fff;
}

.login-alert__content strong {
    display: block;
    margin-bottom: 4px;
}

.login-alert__messages {
    margin-top: 4px;
}

.login-alert__messages p {
    margin: 0;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s;
    box-sizing: border-box; /* Important for padding */
}

.form-group input:focus {
    background-color: white;
    border-color: #fb5b20; /* Orange-ish focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 91, 32, 0.1);
}

.form-group input.is-invalid {
    background-color: #fff;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.field-error {
    margin: 8px 0 0;
    color: #dc2626;
    font-size: 13px;
    line-height: 1.4;
}

.forgot-password {
    text-align: left;
    margin-bottom: 24px;
}

.forgot-password a {
    color: #fb5b20; /* Brand Orange */
    font-size: 14px;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #FF6B00 0%, #FF3D3D 100%); /* Orange to Red gradient */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    position: relative;
}

.login-btn:hover {
    opacity: 0.9;
}

.login-btn:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.login-btn__loader,
.login-btn__loading-text {
    display: none;
}

.login-btn.is-loading .login-btn__label {
    display: none;
}

.login-btn.is-loading .login-btn__loader,
.login-btn.is-loading .login-btn__loading-text {
    display: inline-flex;
}

.login-btn__loader {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    animation: login-spin 0.8s linear infinite;
}

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

.footer {
    margin-top: 32px;
    font-size: 12px;
    color: #9ca3af;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        align-items: flex-start;
        min-height: 100dvh;
        padding: 16px;
        box-sizing: border-box;
    }

    .login-container {
        width: 100%;
        max-width: 450px;
        padding: 0;
        box-sizing: border-box;
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        padding: 32px 28px;
        border-radius: 10px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .form-group input {
        max-width: 100%;
    }

    .welcome-title,
    .welcome-subtitle {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    body {
        min-height: 100dvh;
        padding: 16px 12px;
    }

    .login-card {
        padding: 28px 22px;
    }

    .logo-container {
        margin-bottom: 18px;
    }

    .logo {
        height: 62px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-subtitle {
        margin-bottom: 24px;
    }

    .footer {
        margin-top: 24px;
    }
}

@media (max-height: 680px) and (max-width: 480px) {
    .login-card {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .logo {
        height: 54px;
    }

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

    .footer {
        margin-top: 18px;
    }
}
