/* =========================================
   ARNiya Smart Hub - Auth & Forms (shared)
   Login / Register / Forgot password
========================================= */

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 6px 4px 8px;
}
.auth-optional {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    margin-left: 4px;
}

.input-group .prefix i { font-size: 14px; }
.input-group .prefix { min-width: 50px; text-align: center; padding: 16px 14px; }

.eye-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    padding: 0 16px;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}
.eye-btn:hover { color: var(--gold-light); }

.auth-error {
    display: none;
    color: var(--danger);
    font-size: 12px;
    margin: -16px 6px 14px;
    padding: 0 2px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 2px 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    user-select: none;
}
.auth-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.auth-checkbox input[type="checkbox"]:checked {
    background: var(--gold-gradient);
    border-color: var(--gold-primary);
}
.auth-checkbox input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    inset: 0;
    color: #000;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-forgot { font-size: 13px; }

.auth-secondary-btn {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.auth-secondary-btn:hover {
    background: rgba(184, 137, 42, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.auth-divider {
    text-align: center;
    margin: 26px 0 18px;
    position: relative;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.5px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span { background: #050507; padding: 0 14px; }

.auth-link-btn {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .auth-grid-2 { grid-template-columns: 1fr; gap: 0; }
}

.auth-select {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23b8892a' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px;
    cursor: pointer;
}
.auth-select option { background: #1a1a1e; color: #fff; }

.auth-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #b6f0bb;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 13px;
}
.auth-success i { color: var(--success); font-size: 20px; margin-top: 2px; }
.auth-success strong { display: block; color: #fff; margin-bottom: 2px; }
.auth-success span { color: rgba(255, 255, 255, 0.6); }

/* Responsive form padding */
@media (max-width: 480px) {
    .login-form { padding: 30px 20px 60px; }
    .login-form h2 { font-size: 24px; }
}
