/* ==========================================
   Modern Authentication Styles (Light Glass Theme)
   Overrides the default dark layout for /login and /register
   ========================================== */

body.guest-layout {
    background: #f8f9fc;
    color: #1e2022;
    font-family: 'Inter', sans-serif;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.auth-modern-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.auth-modern-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-modern-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e2022;
    margin-bottom: 0.5rem;
}

.auth-modern-header p {
    color: #8892a4;
    font-size: 1rem;
}

/* ── Form Groups & Labels ────────────────────────────────── */
.auth-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.auth-form-group label {
    display: block;
    color: #8A2BE2;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

/* ── Input Fields ───────────────────────────────────────── */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #cbd5e1;
    display: flex;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e2022;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.auth-input:focus {
    outline: none;
    border-color: #8A2BE2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

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

/* Input without left icon */
.auth-input.no-icon {
    padding-left: 14px;
}

/* Select */
select.auth-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Phone input with country code */
.phone-wrapper {
    display: flex;
    gap: 10px;
}
.phone-prefix {
    width: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-weight: 500;
    background: #f8fafc;
}
.phone-prefix svg { color: #cbd5e1; }

.phone-wrapper .auth-input-wrapper {
    flex: 1;
}

/* ── Password Eye Icon ───────────────────────────────────── */
.auth-input-eye {
    position: absolute;
    right: 14px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    background: none;
    border: none;
    padding: 0;
}
.auth-input-eye:hover {
    color: #8A2BE2;
}

/* ── Grid Layouts ────────────────────────────────────────── */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .auth-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Links & Extras ──────────────────────────────────────── */
.auth-forgot {
    display: block;
    text-align: right;
    color: #8A2BE2;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
}

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

.auth-terms {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #64748b;
    margin: 1.5rem 0;
}

.auth-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    accent-color: #8A2BE2;
}

.auth-terms a {
    color: #8A2BE2;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #64748b;
}

.auth-footer a {
    color: #8A2BE2;
    font-weight: 600;
    text-decoration: none;
    border: 1px dashed #8A2BE2;
    padding: 2px 6px;
    border-radius: 4px;
}

.auth-footer a:hover {
    background: rgba(138, 43, 226, 0.05);
}

/* ── Primary Button ──────────────────────────────────────── */
.btn-auth-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #9D4EDD 0%, #7B2CBF 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

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