/* auth.css */

.authWrap {
    padding-top: 18px;
}

/* Card */
.authCard {
    width: min(560px, 92vw);
    margin: 14px auto 0;
    padding: 22px 18px;
}

/* Header inside card */
.authHeader h2 {
    margin: 0 0 6px;
    font-size: 30px;
    letter-spacing: -0.3px;
}

.authSub {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.35;
}

/* Form */
.authForm {
    display: grid;
    gap: 14px;
}

/* Inline form error message */
.formMsg {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    /* strong red */
    display: none;
}

.formMsg.show {
    display: block;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-weight: 700;
    color: var(--text);
}

/* Inputs already styled in base.css; we just ensure they fill */
.field input {
    width: 100%;
}

/* Full-width primary button */
.btn.full {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    font-size: 16px;
}

/* Footer text */
.authFoot {
    margin: 6px 0 0;
    text-align: center;
    color: var(--muted);
}

.authFoot a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.authFoot a:hover {
    text-decoration: underline;
}

/* Slightly bigger on larger screens */
@media (min-width: 720px) {
    .authCard {
        padding: 26px 22px;
    }
}


.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    width: min(480px, 92vw);
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
    z-index: 9999;
}

/* show animation */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    width: auto;
    max-width: 90vw;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 9999;
}

/* Toast (APP page) */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    width: auto;
    max-width: 90vw;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 99999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ✅ force GREEN */
.toast.success {
    background: transparent !important;
    color: #2f9e44 !important;
    /* cart green */
    box-shadow: none !important;
    border: none !important;
}

/* error stays red box */
.toast.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #ef4444;
}

.passwordWrapper {
    position: relative;
}

.passwordWrapper input {
    padding-right: 44px;
    /* space for eye */
}

.togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
}

.togglePassword:hover {
    opacity: 1;
}

textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 158, 68, 0.15);
}