/* ================================================================
   Ironhorde Online - Login / Register Page Styles
   (shared_base.css provides reset, variables, body, scrollbar, ember canvas)
   ================================================================ */

/* -- Page-specific overrides --------------------------------------- */
html { font-size: 14px; }
body { min-height: 100vh; }

/* -- Background effect --------------------------------------------- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 164, 74, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 106, 0, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* -- Login view ---------------------------------------------------- */
#login-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 30%, rgba(201, 164, 74, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 20% 80%, rgba(255, 106, 0, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 80% 80%, rgba(139, 0, 0, 0.02) 0%, transparent 50%);
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 44px 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%; transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
    border-radius: 2px;
}

/* Ornamental corners */
.login-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 2;
}
.login-corner::before, .login-corner::after {
    content: '';
    position: absolute;
    background: var(--accent);
    opacity: 0.15;
}
.login-corner-tl { top: 12px; left: 12px; }
.login-corner-tl::before { top: 0; left: 0; width: 24px; height: 1px; }
.login-corner-tl::after { top: 0; left: 0; width: 1px; height: 24px; }
.login-corner-tr { top: 12px; right: 12px; }
.login-corner-tr::before { top: 0; right: 0; width: 24px; height: 1px; }
.login-corner-tr::after { top: 0; right: 0; width: 1px; height: 24px; }
.login-corner-bl { bottom: 12px; left: 12px; }
.login-corner-bl::before { bottom: 0; left: 0; width: 24px; height: 1px; }
.login-corner-bl::after { bottom: 0; left: 0; width: 1px; height: 24px; }
.login-corner-br { bottom: 12px; right: 12px; }
.login-corner-br::before { bottom: 0; right: 0; width: 24px; height: 1px; }
.login-corner-br::after { bottom: 0; right: 0; width: 1px; height: 24px; }

/* -- Branding ------------------------------------------------------ */
.login-title {
    text-align: center;
    margin-bottom: 28px;
}

.login-title .login-emblem {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(201, 164, 74, 0.2);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 164, 74, 0.08) 0%, transparent 70%);
}

.login-title h1 {
    font-family: var(--font-d);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.login-title h1 .logo-accent {
    color: var(--accent);
}

.login-title .login-subtitle {
    font-family: var(--font-h);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Divider in login title */
.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.login-divider .ld-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.25;
}
.login-divider .ld-diamond {
    width: 6px;
    height: 6px;
    background: var(--accent);
    opacity: 0.35;
    transform: rotate(45deg);
}

/* -- Tabs ---------------------------------------------------------- */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.login-tab {
    flex: 1;
    padding: 12px;
    font-family: var(--font-h);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.25s, background 0.25s;
    position: relative;
}

.login-tab:first-child {
    border-right: 1px solid var(--border);
}

.login-tab:hover {
    color: var(--text);
    background: rgba(201, 164, 74, 0.04);
}

.login-tab.active {
    color: var(--accent);
    background: rgba(201, 164, 74, 0.08);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* -- Tab content --------------------------------------------------- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -- Form elements (page-specific overrides) ----------------------- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form .btn {
    margin-top: 8px;
    padding: 14px;
    font-family: var(--font-h);
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* -- Back to home link --------------------------------------------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-decoration: none;
    margin-top: 20px;
    transition: color 0.25s;
}
.back-link:hover { color: var(--accent); }

/* -- Responsive ---------------------------------------------------- */
@media (max-width: 640px) {
    .login-box { padding: 32px 22px; }
    .btn { padding: 10px 14px; font-size: 0.85rem; }
}
