/* css-auth.css
 * Sign In / Create Account page styles.
 * Moved out of an inline <style> block so style-src can eventually drop
 * 'unsafe-inline' too (see CSP comment in the Blade file for the one
 * remaining exception — Font Awesome Kit's runtime-injected <style> tag).
 */

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: #0f1e36;
}

/* ── ACCESSIBILITY HELPERS ── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 2px solid #1a6fd4;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── WRAPPER ── */
.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    background-image: url("/storage/attachments/bg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 55, 0.65);
}

/* ── CARD ── */
.auth-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 880px;
    max-width: 100%;
    min-height: 540px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.45);
}

/* ── LEFT PANEL ── */
.auth-panel {
    width: 320px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0d3b72 0%, #0a1e40 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    gap: 1rem;
}

.logo-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    box-shadow: 0 0 0 6px rgba(212, 175, 106, 0.1);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-panel h1 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.panel-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #d4af6a, #f0d9a8);
    border-radius: 2px;
}

.auth-panel p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.switch-hint {
    margin-top: 1rem;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.switch-btn {
    background: none;
    border: none;
    color: #7eb8f7;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    text-decoration: underline;
    padding: 0;
}

/* ── RIGHT: FORM AREA ── */
.auth-form-area {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.75rem 2.75rem;
    overflow-y: auto;
}

.form-section {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.form-section.active {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #0d3b72;
    margin-bottom: 0;
}

.form-subtitle {
    font-size: 13px;
    color: #999;
    margin-top: -4px;
    margin-bottom: 4px;
}

/* ── INPUTS ── */
.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #e0e7ef;
    border-radius: 10px;
    padding: 0 14px;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}

.input-group:focus-within {
    border-color: #1a6fd4;
    background: #fff;
}

.input-group i {
    font-size: 16px;
    color: #b0bec5;
    flex-shrink: 0;
}

.input-group input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #1a2540;
    padding: 13px 0;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.input-group input::placeholder {
    color: #b0bec5;
}

.input-group .toggle-pw {
    cursor: pointer;
    color: #b0bec5;
    font-size: 15px;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.input-group .toggle-pw:hover {
    color: #1a6fd4;
}

/* ── FIELD HINTS ── */
.field-hint {
    font-size: 12px;
    color: #999;
    margin-top: -2px;
    min-height: 14px;
}

.field-hint.match { color: #1a8f4c; }
.field-hint.mismatch { color: #d33; }

/* ── FORGOT ── */
.forgot-link {
    font-size: 12px;
    color: #1a6fd4;
    text-decoration: none;
    text-align: right;
    display: block;
    margin-top: 4px;
}

.forgot-link:hover { text-decoration: underline; }

/* ── CHECKBOX ── */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #0d3b72;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label a {
    color: #1a6fd4;
    text-decoration: none;
}

.checkbox-label a:hover { text-decoration: underline; }

/* ── RECAPTCHA ── */
.g-recaptcha {
    transform-origin: left center;
}

@media (max-width: 380px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}

/* ── SUBMIT ── */
.btn-submit {
    background: #0d3b72;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    letter-spacing: 0.3px;
}

.btn-submit:hover { background: #1a6fd4; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
    .auth-card {
        flex-direction: column;
        border-radius: 16px;
    }

    .auth-panel {
        width: 100%;
        padding: 2rem 1.5rem;
        min-height: unset;
    }

    .auth-form-area {
        padding: 2rem 1.5rem;
    }
}