/**
 * NB Auth — Unified Login & Signup Styles
 * Version: 1.0.0
 *
 * Minimal, clean styling. Uses neutral defaults so it inherits BuddyBoss
 * theme colors and fonts where possible. Override freely in your theme CSS.
 */

.nb-auth-box {
    max-width: 460px;
    margin: 0 auto;
    padding: 32px 28px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    color: #222;
    box-sizing: border-box;
}

.nb-auth-box *,
.nb-auth-box *::before,
.nb-auth-box *::after {
    box-sizing: border-box;
}

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

.nb-auth-form[hidden] {
    display: none;
}

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

.nb-auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nb-auth-field label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.nb-auth-req {
    color: #C9A84C;
    font-weight: 700;
}

.nb-auth-field input[type="text"],
.nb-auth-field input[type="email"],
.nb-auth-field input[type="url"],
.nb-auth-field input[type="password"],
.nb-auth-field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    color: #222;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.nb-auth-field input:focus,
.nb-auth-field textarea:focus {
    outline: none;
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.nb-auth-field textarea {
    resize: vertical;
    min-height: 72px;
}

.nb-auth-help {
    font-size: 12px;
    color: #888;
}

/* Password field with eye toggle */
.nb-auth-password-wrap {
    position: relative;
}
.nb-auth-password-wrap input {
    padding-right: 44px;
}
.nb-auth-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    line-height: 1;
}
.nb-auth-toggle-password:hover,
.nb-auth-toggle-password:focus {
    opacity: 1;
    outline: none;
}

/* Remember me / recover password row */
.nb-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.nb-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: normal;
}
.nb-auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #C9A84C;
}

.nb-auth-link-muted {
    color: #666;
    text-decoration: underline;
    text-decoration-style: dotted;
    font-size: 14px;
}
.nb-auth-link-muted:hover {
    color: #C9A84C;
    text-decoration-style: solid;
}

/* Submit button */
.nb-auth-submit {
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #C9A84C;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
}
.nb-auth-submit:hover  { background: #b79640; }
.nb-auth-submit:active { transform: translateY(1px); }
.nb-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Switch link row ("Don't have an account? Sign Up") */
.nb-auth-switch {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin: 8px 0 0;
}
.nb-auth-switch-link {
    color: #C9A84C;
    font-weight: 600;
    text-decoration: none;
}
.nb-auth-switch-link:hover {
    text-decoration: underline;
}

/* Messages (success / error) */
.nb-auth-messages {
    display: none;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
}
.nb-auth-messages.nb-auth-error {
    display: block;
    background: #fdecec;
    color: #8a1e1e;
    border: 1px solid #f5c2c2;
}
.nb-auth-messages.nb-auth-success {
    display: block;
    background: #eaf7ee;
    color: #1e5b2f;
    border: 1px solid #bfe4c9;
}

/* Logged-in state */
.nb-auth-loggedin {
    text-align: center;
}
.nb-auth-loggedin p {
    margin: 8px 0;
}

/* Small screens */
@media (max-width: 520px) {
    .nb-auth-box {
        padding: 24px 18px;
    }
    .nb-auth-field-row {
        grid-template-columns: 1fr;
    }
}
