.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #f8fafc;
    color: #0f172a;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

    .auth-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background: linear-gradient(90deg, #2b6f62, #df6843);
    }

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 14px;
}

.auth-header h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    line-height: 1.05;
    color: #0f172a;
}

.auth-header p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .auth-form .form-group label {
        font-size: 0.92rem;
        font-weight: 600;
        color: #2b6f62;
    }

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .auth-input::placeholder {
        color: #94a3b8;
    }

    .auth-input:focus {
        border-color: #2b6f62;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(29, 91, 79, 0.12);
    }

.auth-button {
    margin-top: 6px;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #2b6f62, #df6843);
    box-shadow: 0 10px 25px rgba(43, 111, 98,0.25);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

    .auth-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(43, 111, 98,0.28);
    }

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

.auth-footer {
    margin-top: 22px;
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
}

    .auth-footer a {
        margin-left: 6px;
        color: #2b6f62;
        font-weight: 700;
        text-decoration: none;
    }

        .auth-footer a:hover {
            color: #df6843;
            text-decoration: underline;
        }

@media (max-width: 640px) {
    .auth-shell {
        padding: 18px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-header h1 {
        font-size: 1.7rem;
    }
}
.auth-shell {
    min-height: 100vh;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #0f172a;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.auth-card-wide {
    max-width: 680px;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #2b6f62, #df6843);
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 14px;
}

.auth-header h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    line-height: 1.05;
    color: #0f172a;
}

.auth-header p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .auth-form .form-group label {
        font-size: 0.92rem;
        font-weight: 600;
        color: #2b6f62;
    }

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .auth-input::placeholder {
        color: #94a3b8;
    }

    .auth-input:focus {
        border-color: #2b6f62;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(29, 91, 79, 0.12);
    }

.auth-button {
    margin-top: 6px;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #2b6f62, #df6843);
    box-shadow: 0 10px 25px rgba(43, 111, 98,0.25);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .auth-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(43, 111, 98,0.28);
    }

.auth-error {
    padding: 14px 16px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.95rem;
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
}

    .auth-footer a {
        margin-left: 6px;
        color: #2b6f62;
        font-weight: 700;
        text-decoration: none;
    }

        .auth-footer a:hover {
            color: #df6843;
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .auth-shell {
        padding: 18px;
    }

    .auth-card,
    .auth-card-wide {
        max-width: 100%;
        padding: 24px 20px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-header h1 {
        font-size: 1.7rem;
    }
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .auth-shell {
        padding: 12px 8px !important;
    }

    .auth-card,
    .auth-card-wide {
        padding: 20px 14px !important;
        border-radius: 12px !important;
    }
}

/* Account recovery and email confirmation */
.auth-notice {
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #edf6f4;
    border: 1px solid #b7d8d0;
    color: #17332f;
    font-size: 0.95rem;
}

.auth-error + .auth-form,
.auth-notice + .auth-form {
    margin-top: 16px;
}

.auth-forgot {
    text-align: right;
    margin: -4px 0 12px 0;
    font-size: 0.9rem;
}

    .auth-forgot a {
        color: #1d5b4f;
        font-weight: 600;
        text-decoration: none;
    }

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

.email-confirm-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 14px;
    margin: 12px 0;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    font-size: 0.9rem;
}

    .email-confirm-banner form {
        margin: 0;
    }

    .email-confirm-banner button {
        border: 1px solid #d97706;
        background: #ffffff;
        color: #92400e;
        border-radius: 6px;
        padding: 4px 10px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
    }

.email-confirm-banner-ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
