/* =========================================================
   admin-auth.css — Shared Auth Pages Styles
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    background: #f4f6f9;
    overflow: hidden;
}

/* ===== Left Panel — Branding ===== */
.auth-brand-panel {
    flex: 1;
    background: linear-gradient(135deg, #1C1A17 0%, #2D2A26 40%, #3D3529 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 148, 74, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -150px;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 148, 74, 0.08) 0%, transparent 70%);
    bottom: -80px;
    left: -100px;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 420px;
}

.brand-logo {
    max-height: 50px;
    width: auto;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    border-radius: 10px;
}

.brand-content h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.brand-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
}

.brand-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(184, 148, 74, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    border: 1px solid rgba(184, 148, 74, 0.2);
}

.brand-icon-large svg {
    width: 40px;
    height: 40px;
    fill: #B8944A;
}


/* ===== Right Panel — Form ===== */
.auth-form-panel {
    width: 520px;
    min-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: #fff;
    position: relative;
}

.auth-form-wrapper {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
}

.auth-heading {
    margin-bottom: 8px;
}

.auth-heading h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2D2A26;
    letter-spacing: -0.3px;
}

.auth-heading p {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 400;
}

.auth-form {
    margin-top: 36px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #94a3b8;
    pointer-events: none;
    transition: fill 0.2s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #B8944A;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(184, 148, 74, 0.1);
}

.input-wrapper:focus-within svg {
    fill: #B8944A;
}

.input-wrapper input[readonly] {
    background: #eef2f7;
    color: #64748b;
    cursor: not-allowed;
}

.input-wrapper input.is-invalid {
    border-color: #ef4444;
}

.input-wrapper input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.invalid-feedback {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #8B7038 0%, #B8944A 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover {
    box-shadow: 0 6px 20px rgba(184, 148, 74, 0.4);
    transform: translateY(-1px);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(184, 148, 74, 0.3);
}

.auth-link {
    display: inline-block;
    margin-top: 20px;
    color: #8B7038;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #B8944A;
    text-decoration: underline;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

/* Status alert */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.auth-alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.auth-alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    background: #fff;
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) { width: 80px; height: 80px; top: 15%; left: 10%; animation-delay: 0s; }
.floating-shape:nth-child(2) { width: 120px; height: 120px; top: 60%; right: 15%; animation-delay: 2s; }
.floating-shape:nth-child(3) { width: 60px; height: 60px; bottom: 20%; left: 25%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 991.98px) {
    body.auth-page { flex-direction: column; overflow: auto; }
    .auth-brand-panel { padding: 40px 30px; min-height: auto; }
    .brand-content h1 { font-size: 24px; }
    .brand-icon-large { width: 60px; height: 60px; margin-bottom: 20px; }
    .brand-icon-large svg { width: 28px; height: 28px; }
    .auth-form-panel { width: 100%; min-width: auto; padding: 40px 30px; flex: 1; }
}

@media (max-width: 575.98px) {
    .auth-brand-panel { padding: 30px 20px; }
    .brand-content h1 { font-size: 20px; }
    .brand-content p { font-size: 13px; }
    .auth-form-panel { padding: 30px 20px; }
    .auth-heading h2 { font-size: 22px; }
}
