/* ============================================================================
   W Media Trading - auth (login/register) styles
   Purpose: Shared card UI for authentication pages
============================================================================ */

/* =======================
   Section: Base card reset
======================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* =======================
   Section: Page background
======================= */
body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #f5f5f5;
    padding: 20px;
}

/* =======================
   Section: Auth card container
======================= */
.card {
    width: 100%;
    max-width: 420px;
    background: rgba(25, 35, 45, 0.85);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
}

/* =======================
   Section: Typography
======================= */
h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub { 
    color: #94a3b8; 
    margin-bottom: 24px; 
    font-size: 0.95rem; 
}

.note { 
    margin-top: 12px; 
    font-size: 0.85rem; 
    color: #8899a6; 
}

label { 
    display: block; 
    margin-top: 14px; 
    color: #cbd5e1; 
    font-size: 0.9rem; 
}

/* =======================
   Section: Form controls
======================= */
input {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #e6eef6;
    font-size: 16px;
}

.password-field {
    position: relative;
    margin-top: 6px;
}

.password-field input {
    margin-top: 0;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #00c6ff;
    background: rgba(0, 198, 255, 0.08);
}

button.btn-submit,
form button[type="submit"] {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: not-allowed; }

/* =======================
   Section: Messages & links
======================= */
.error { 
    color: #ff8e8e; 
    margin-top: 14px; 
    font-size: 0.9rem; 
    min-height: 1.2em; 
}

.success { 
    color: #11c18f; 
    margin-top: 14px; 
    font-size: 0.9rem; 
}

.links { 
    margin-top: 20px; 
    text-align: center; 
    color: #94a3b8; 
    font-size: 0.9rem; 
}

.links a { 
    color: #00c6ff; 
    text-decoration: none; 
}

.back { 
    display: inline-block; 
    margin-bottom: 16px; 
    color: #94a3b8; 
    text-decoration: none; 
    font-size: 0.9rem; 
}

