﻿:scope {
    --rz-primary: #4caf50 !important;
    --rz-primary-dark: #388e3c !important;
    --rz-primary-darker: #2e7d32 !important;
    --rz-primary-light: #81c784 !important;
    --rz-primary-lighter: #c8e6c9 !important;
}

.modern-input[type="password"] {
    background: rgba(255,255,255,0.55) !important;
}

CSS.rz-alert-danger {
    background: #ffebee !important;
    color: #c62828 !important;
    border: 1px solid #ef9a9a !important;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #dcedc8 50%, #c5e1a5 100%);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.left-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(76,175,80,0.08) 0%, transparent 40%);
    opacity: 0.7;
}

.auth-card.glass-morph {
    width: 100%;
    max-width: 460px;
    padding: 3.5rem 2.8rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(185%);
    -webkit-backdrop-filter: blur(20px) saturate(185%);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 24px 64px -12px rgba(0,0,0,0.10), 0 12px 32px rgba(76,175,80,0.14);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.auth-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 90px -16px rgba(0,0,0,0.14), 0 16px 40px rgba(76,175,80,0.18);
}

/* Brand */
.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.logo-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4caf50, #2e7d32);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}

.brand-text h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--mint-800);
    letter-spacing: -1.2px;
    line-height: 1;
}

.brand-text p {
    margin: 4px 0 0;
    color: #5e6c5e;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Demo CTA */
.demo-cta {
    border-radius: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(76,175,80,0.28);
    transition: all 0.28s ease;
}

    .demo-cta:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 10px 28px rgba(76,175,80,0.38);
    }

/* Divider */
.divider-with-text {
    display: flex;
    align-items: center;
    color: #6b7869;
    font-size: 0.92rem;
    margin: 8px 0;
}

    .divider-with-text span {
        padding: 0 1.6rem;
        background: rgba(255,255,255,0.9);
        border-radius: 999px;
    }

    .divider-with-text::before,
    .divider-with-text::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(107,120,106,0.28);
    }

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modern-input {
    border-radius: 14px;
    border: 1.5px solid rgba(107,124,106,0.32);
    background: rgba(255,255,255,0.55);
    transition: all 0.22s ease;
    font-size: 1.05rem;
    padding: 0.85rem 1.1rem;
}

    .modern-input:focus {
        border-color: var(--mint-500);
        box-shadow: 0 0 0 4px rgba(76,175,80,0.18);
        background: white;
    }

.submit-button {
    margin-top: 1.2rem;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(46,125,50,0.32);
    transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

    .submit-button:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 14px 36px rgba(46,125,50,0.42);
    }

/* Footer */
.auth-footer {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    font-size: 0.98rem;
    margin-top: 0.8rem;
    color: var(--mint-700);
}

    .auth-footer a {
        color: var(--mint-600);
        font-weight: 500;
    }

        .auth-footer a:hover {
            color: var(--mint-800);
            text-decoration: underline;
        }
