/**
 * CyberLogin Module - Login/Logout Display
 * Cyberpunk red/orange theme matching GridStream notifications
 * Version: 1.1.0
 */

/* ==========================================================================
   Module Container Base
   ========================================================================== */

.cyberlogin {
    --bg: #090910;
    --panel: rgba(15, 10, 26, 0.92);
    --panel-edge: #e63946;
    --panel-glow: rgba(230, 57, 70, 0.3);
    --text: #f8edff;
    --muted: #f8c7de;
    --neon: #e63946;
    --neon-2: #ff8a24;
    color: var(--text);
    font-family: "Atkinson Hyperlegible", "Lexend", "Segoe UI", "Verdana", sans-serif;
    width: 320px;
    max-width: 100%;
}

/* ==========================================================================
   Login Card
   ========================================================================== */

.cyberlogin .cyberlogin-card {
    position: relative;
    background: linear-gradient(135deg, #1a0a0f 0%, #2a1520 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #e63946, #ff8a24) 1;
    border-radius: 20px 0 20px 0;
    padding: 20px;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.5),
                0 0 28px var(--panel-glow);
    overflow: hidden;
}

/* Scanline effect */
.cyberlogin .cyberlogin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(230, 57, 70, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(230, 57, 70, 0.03) 3px
    );
    pointer-events: none;
    z-index: 1;
}

.cyberlogin .cyberlogin-card > * {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Header
   ========================================================================== */

.cyberlogin .cyberlogin-header .title {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff8a24;
    text-shadow: 0 0 18px rgba(255, 138, 36, 0.5);
    margin-bottom: 15px;
    font-size: 18px;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.cyberlogin .field {
    margin-bottom: 14px;
}

.cyberlogin .field label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff8a24;
    margin-bottom: 6px;
    font-weight: 600;
}

.cyberlogin .field input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(230, 57, 70, 0.3);
    background: rgba(26, 10, 15, 0.6);
    color: var(--text);
    padding: 10px 14px;
    font-family: "Atkinson Hyperlegible", "Lexend", "Segoe UI", "Verdana", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.cyberlogin .field input:focus {
    outline: none;
    border-color: #ff8a24;
    background: rgba(42, 21, 32, 0.8);
    box-shadow: 0 0 0 2px rgba(255, 138, 36, 0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   Options & Links
   ========================================================================== */

.cyberlogin .options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 0 16px;
    flex-wrap: wrap;
}

.cyberlogin .options .remember {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #ddd;
    font-family: "Atkinson Hyperlegible", "Lexend", "Segoe UI", "Verdana", sans-serif;
}

.cyberlogin .options .remember input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.cyberlogin .options .links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cyberlogin .options .links a {
    color: #ff8a24;
    opacity: 0.9;
    text-decoration: none;
    font-size: 0.86rem;
    transition: all 0.3s ease;
}

.cyberlogin .options .links a:hover {
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 138, 36, 0.5);
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */

.cyberlogin .actions {
    display: flex;
    justify-content: flex-start;
}

.cyberlogin .btn.neon {
    background: linear-gradient(135deg, #e63946, #ff8a24);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 0;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
    font-size: 14px;
}

.cyberlogin .btn.neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.6),
                0 10px 20px rgba(0, 0, 0, 0.3);
}

.cyberlogin .btn.neon:active {
    transform: translateY(0);
}

/* ==========================================================================
   Logged In Greeting
   ========================================================================== */

.cybergreet {
    position: relative;
    background: linear-gradient(135deg, #1a0a0f 0%, #2a1520 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #e63946, #ff8a24) 1;
    border-radius: 20px 0 20px 0;
    padding: 20px;
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.48),
                0 0 28px var(--panel-glow);
    overflow: hidden;
}

/* Scanline effect */
.cybergreet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(230, 57, 70, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(230, 57, 70, 0.03) 3px
    );
    pointer-events: none;
    z-index: 1;
}

.cybergreet > * {
    position: relative;
    z-index: 2;
}

.cybergreet .greeting {
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ff8a24;
    text-shadow: 0 0 18px rgba(255, 138, 36, 0.5);
    font-size: 16px;
}

.cybergreet .logout .btn.neon {
    margin-top: 6px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .cyberlogin {
        width: 100%;
    }
    
    .cyberlogin .cyberlogin-card,
    .cybergreet {
        border-radius: 10px;
    }
    
    .cyberlogin .options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.cyberlogin .field input:focus,
.cyberlogin .btn.neon:focus,
.cyberlogin .options .links a:focus {
    outline: 2px solid #ff8a24;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .cyberlogin .field input,
    .cyberlogin .btn.neon,
    .cyberlogin .options .links a {
        transition: none;
    }
    
    .cyberlogin .cyberlogin-card::before,
    .cybergreet::before {
        animation: none;
    }
}
