/* ═══════════════════════════════════════════════════════════════
   GADGETOPIAH — CUSTOM LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset WordPress defaults ──────────────────────────────────── */
body.login {
    background: #F7F5F1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ── Outer wrapper (injected by JS) ────────────────────────────── */
#gad-login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Left brand panel ──────────────────────────────────────────── */
#gad-login-left {
    width: 45%;
    flex-shrink: 0;
    background: #0C1117;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 52px 48px;
}

/* Diagonal gold accent strip */
#gad-login-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(184,150,90,0.18) 0%, transparent 70%);
    pointer-events: none;
}
#gad-login-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(184,150,90,0.10) 0%, transparent 70%);
    pointer-events: none;
}

/* Logo mark */
.gad-login-logomark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: auto;
    position: relative;
    z-index: 2;
}
.gad-login-logomark-icon {
    width: 44px;
    height: 44px;
    background: #B8965A;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    flex-shrink: 0;
}
.gad-login-logomark-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

/* When no hero image is set, push the copy section down to fill the space */
#gad-login-left:not(:has(.gad-login-hero-img)) .gad-login-copy {
    margin-top: auto;
    padding-bottom: 0;
}
#gad-login-left:not(:has(.gad-login-hero-img)) .gad-login-logomark {
    margin-bottom: 0;
}

/* Hero image */
.gad-login-hero-img {
    position: absolute;
    right: -30px;
    bottom: 100px;
    height: 55%;
    max-height: 380px;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
}

/* Headline copy */
.gad-login-copy {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-bottom: 8px;
}
.gad-login-copy h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.gad-login-copy h2 span {
    color: #B8965A;
}
.gad-login-copy p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 300px;
}

/* Feature pills */
.gad-login-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}
.gad-login-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.70);
    font-weight: 500;
}
.gad-login-feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #B8965A;
    flex-shrink: 0;
}

/* ── Right form panel ──────────────────────────────────────────── */
#login {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 64px;
    background: #fff;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Logo (hidden — we show our own in left panel) */
#login h1 a {
    display: none;
}

/* Custom logo image (uploaded via Login Settings) */
.gad-login-custom-logo {
    max-height: 48px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* Welcome heading (injected) */
.gad-login-welcome {
    margin-bottom: 32px;
}
.gad-login-welcome h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}
.gad-login-welcome p {
    font-size: 14px;
    color: #636363;
}

/* Form labels */
#loginform label {
    font-size: 13px;
    font-weight: 600;
    color: #1C1C1E;
    display: block;
    margin-bottom: 6px;
}

/* Inputs */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid #E8E4DC;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1C1C1E;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    margin-top: 0;
    display: block;
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: #B8965A;
    box-shadow: 0 0 0 3px rgba(184,150,90,0.15);
}

/* Field spacing */
#loginform .input { margin-bottom: 0; }
#loginform p { margin-bottom: 18px !important; }

/* Remember me */
#loginform .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
#loginform .forgetmenot label {
    font-size: 13px;
    color: #636363;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}
#loginform input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #B8965A;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

/* Submit row */
.submit {
    margin-top: 24px !important;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}
#wp-submit {
    width: 100%;
    height: 50px;
    background: #B8965A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(184,150,90,0.35);
    font-family: inherit;
}
#wp-submit:hover {
    background: #9C7D44;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(184,150,90,0.40);
}
#wp-submit:active { transform: translateY(0); }

/* Bottom nav links */
#nav, #backtoblog {
    text-align: center;
    margin-top: 10px !important;
    padding: 0 !important;
}
#nav a, #backtoblog a {
    font-size: 13px;
    color: #636363;
    text-decoration: none;
    transition: color 0.2s;
}
#nav a:hover, #backtoblog a:hover { color: #B8965A; }

/* Error / info messages */
#login_error,
.message,
.success {
    border-left: 4px solid #B8965A !important;
    border-radius: 0 6px 6px 0 !important;
    background: #FAF6EE !important;
    color: #1C1C1E !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
}
#login_error { border-left-color: #ef4444 !important; background: #fef2f2 !important; color: #991b1b !important; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    #gad-login-left { display: none; }
    body.login { background: #fff; }
    #login { padding: 48px 32px; }
}
@media (max-width: 480px) {
    #login { padding: 32px 20px; }
}
