﻿/**
 * MatchPlay Golf - CYBERSPACE BLACK LABEL Login CSS
 * 
 * @version     3.0.0 EXTREME EDITION
 * @file        /css/gaming-login.css
 * @description ECHTES Gaming Design - Cyberpunk/Matrix Style
 * @author      Peter Sellke
 * @date        2025-11-03
 */

/* ====================================
   RESET & BASICS
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Orbitron', 'Exo 2', monospace;
    background: #000000;
    color: #00ff88;
    overflow-x: hidden;
    position: relative;
}

/* ====================================
   MATRIX BACKGROUND ANIMATION
   ==================================== */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.03) 0%, transparent 70%), linear-gradient(180deg, #000000 0%, #001a0d 50%, #000000 100%);
}

    /* Matrix Rain Characters */
    .matrix-bg::before {
        content: '';
        position: absolute;
        top: -100%;
        left: 0;
        width: 100%;
        height: 200%;
        background-image: repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(0, 255, 136, 0.03) 2px, rgba(0, 255, 136, 0.03) 4px );
        animation: matrix-rain 20s linear infinite;
    }

@keyframes matrix-rain {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50%);
    }
}

/* Scan Lines */
.matrix-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient( 0deg, rgba(0, 255, 136, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 255, 136, 0.03) 3px );
    animation: scan 8s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

/* ====================================
   PARTICLES SYSTEM
   ==================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 30px #00ff88;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* ====================================
   MAIN CONTAINER
   ==================================== */
.gaming-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ====================================
   LOGIN/REGISTER CARD
   ==================================== */
.gaming-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(0, 10, 5, 0.95);
    border: 2px solid #00ff88;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.5), 0 0 100px rgba(0, 255, 136, 0.3), inset 0 0 100px rgba(0, 255, 136, 0.05);
    animation: card-glow 3s ease-in-out infinite;
}

@keyframes card-glow {
    0%, 100% {
        box-shadow: 0 0 50px rgba(0, 255, 136, 0.5), 0 0 100px rgba(0, 255, 136, 0.3), inset 0 0 100px rgba(0, 255, 136, 0.05);
    }

    50% {
        box-shadow: 0 0 70px rgba(0, 255, 136, 0.7), 0 0 120px rgba(0, 255, 136, 0.5), inset 0 0 120px rgba(0, 255, 136, 0.1);
    }
}

/* Corner Brackets */
.gaming-card::before,
.gaming-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #00ff88;
}

.gaming-card::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.gaming-card::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* ====================================
   CARD HEADER
   ==================================== */
.card-header {
    background: rgba(0, 255, 136, 0.05);
    border-bottom: 2px solid #00ff88;
    padding: 30px;
    text-align: center;
    position: relative;
}

    /* Scan Line in Header */
    .card-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #00ff88, transparent );
        animation: scan-line 2s linear infinite;
    }

@keyframes scan-line {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Logo */
.gaming-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
}

.logo-inner {
    width: 100%;
    height: 100%;
    border: 3px solid #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
    box-shadow: 0 0 30px #00ff88, inset 0 0 30px rgba(0, 255, 136, 0.3);
    animation: logo-pulse 2s ease-in-out infinite;
    position: relative;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px #00ff88, inset 0 0 30px rgba(0, 255, 136, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px #00ff88, inset 0 0 50px rgba(0, 255, 136, 0.5);
    }
}

/* Logo Rotating Ring */
.logo-inner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-top-color: #00ff88;
    border-radius: 50%;
    animation: logo-rotate 3s linear infinite;
}

@keyframes logo-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Title */
.gaming-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 30px #00ff88, 0 0 40px #00ff88;
    margin: 0 0 10px 0;
    animation: title-glitch 5s infinite;
}

@keyframes title-glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }

    91% {
        transform: translate(-2px, 2px);
    }

    92% {
        transform: translate(2px, -2px);
    }

    93% {
        transform: translate(-2px, 2px);
    }

    94% {
        transform: translate(2px, -2px);
    }
}

.gaming-subtitle {
    font-size: 14px;
    color: rgba(0, 255, 136, 0.7);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

    .gaming-subtitle::before {
        content: '> ';
        color: #00ff88;
    }

/* ====================================
   CARD BODY
   ==================================== */
.card-body {
    padding: 40px 30px;
}

/* ====================================
   ALERTS
   ==================================== */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

    .alert::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        animation: alert-shine 2s infinite;
    }

@keyframes alert-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.alert-error {
    background: rgba(255, 0, 68, 0.1);
    border-color: #ff0044;
    color: #ff0044;
    text-shadow: 0 0 10px #ff0044;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
}

/* ====================================
   FORM GROUPS
   ==================================== */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Label */
.form-label {
    display: block;
    color: #00ff88;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

    .form-label::before {
        content: '▸ ';
        margin-right: 5px;
    }

.required {
    color: #ff0044;
    text-shadow: 0 0 10px #ff0044;
}

/* ====================================
   FORM INPUTS - TERMINAL STYLE
   ==================================== */
.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    position: relative;
}

    .form-input:focus {
        outline: none;
        border-color: #00ff88;
        background: rgba(0, 255, 136, 0.05);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), inset 0 0 20px rgba(0, 255, 136, 0.1);
        text-shadow: 0 0 5px #00ff88;
    }

    .form-input::placeholder {
        color: rgba(0, 255, 136, 0.3);
        font-style: italic;
    }

    /* Typing Cursor Effect */
    .form-input:focus::after {
        content: '▋';
        animation: cursor-blink 1s infinite;
        margin-left: 5px;
    }

@keyframes cursor-blink {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

/* ====================================
   PASSWORD TOGGLE
   ==================================== */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #00ff88;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px #00ff88);
}

    .password-toggle:hover {
        color: #00ff44;
        filter: drop-shadow(0 0 10px #00ff88);
        transform: translateY(-50%) scale(1.1);
    }

/* ====================================
   PASSWORD STRENGTH METER
   ==================================== */
.password-strength {
    height: 4px;
    background: rgba(0, 255, 136, 0.1);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

    .password-strength::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient( 90deg, transparent, transparent 10px, rgba(0, 255, 136, 0.1) 10px, rgba(0, 255, 136, 0.1) 11px );
    }

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    position: relative;
}

    .password-strength-bar::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
        animation: strength-shine 2s infinite;
    }

@keyframes strength-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.password-strength-bar.weak {
    width: 33%;
    background: #ff0044;
    box-shadow: 0 0 10px #ff0044;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

.password-strength-bar.strong {
    width: 100%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.form-hint {
    font-size: 11px;
    color: rgba(0, 255, 136, 0.5);
    margin-top: 5px;
    font-family: 'Courier New', monospace;
}

/* ====================================
   CHECKBOX & REMEMBER ME
   ==================================== */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .form-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
        appearance: none;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid #00ff88;
        position: relative;
        transition: all 0.3s ease;
    }

        .form-checkbox input[type="checkbox"]:checked {
            background: #00ff88;
            box-shadow: 0 0 10px #00ff88, inset 0 0 10px rgba(0, 0, 0, 0.5);
        }

            .form-checkbox input[type="checkbox"]:checked::after {
                content: '✓';
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: #000;
                font-size: 14px;
                font-weight: bold;
            }

    .form-checkbox label {
        color: rgba(0, 255, 136, 0.8);
        font-size: 13px;
        cursor: pointer;
        user-select: none;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* Links */
.forgot-link,
.register-link a,
.login-link a {
    color: #00ff88;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

    .forgot-link::after,
    .register-link a::after,
    .login-link a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0%;
        height: 1px;
        background: #00ff88;
        box-shadow: 0 0 5px #00ff88;
        transition: width 0.3s ease;
    }

    .forgot-link:hover::after,
    .register-link a:hover::after,
    .login-link a:hover::after {
        width: 100%;
    }

/* ====================================
   BUTTONS - CYBERPUNK STYLE
   ==================================== */
.btn-gaming {
    width: 100%;
    padding: 18px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff88;
    color: #00ff88;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    clip-path: polygon( 0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px) );
}

    /* Button Glow Effect */
    .btn-gaming::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(0, 255, 136, 0.3), transparent );
        transition: left 0.5s ease;
    }

    .btn-gaming:hover::before {
        left: 100%;
    }

    .btn-gaming:hover {
        background: rgba(0, 255, 136, 0.1);
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.5), inset 0 0 30px rgba(0, 255, 136, 0.1);
        transform: translateY(-2px);
        text-shadow: 0 0 10px #00ff88;
    }

    .btn-gaming:active {
        transform: translateY(0);
    }

    /* Button Corners */
    .btn-gaming::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: transparent;
        border: 2px solid #00ff88;
        opacity: 0;
        transition: opacity 0.3s ease;
        clip-path: polygon( 0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px) );
    }

    .btn-gaming:hover::after {
        opacity: 1;
    }

    /* Loading State */
    .btn-gaming.loading {
        pointer-events: none;
        opacity: 0.7;
        position: relative;
    }

        .btn-gaming.loading::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            top: 50%;
            left: 50%;
            margin-left: -10px;
            margin-top: -10px;
            border: 3px solid transparent;
            border-top-color: #00ff88;
            border-radius: 50%;
            animation: btn-spin 0.8s linear infinite;
        }

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====================================
   DIVIDER
   ==================================== */
.gaming-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

    .gaming-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient( 90deg, transparent, #00ff88, transparent );
    }

    .gaming-divider span {
        position: relative;
        background: rgba(0, 10, 5, 0.95);
        padding: 0 20px;
        color: rgba(0, 255, 136, 0.6);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

/* ====================================
   REGISTER/LOGIN LINKS
   ==================================== */
.register-link,
.login-link {
    text-align: center;
    margin-top: 25px;
    color: rgba(0, 255, 136, 0.6);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====================================
   BACK LINK
   ==================================== */
.back-link {
    text-align: center;
    margin-top: 20px;
}

    .back-link a {
        color: #00ff88;
        text-decoration: none;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

        .back-link a:hover {
            text-shadow: 0 0 10px #00ff88;
            transform: translateX(-5px);
        }

/* ====================================
   SUCCESS MESSAGE
   ==================================== */
.success-message {
    text-align: center;
    padding: 30px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: success-bounce 1s ease-in-out;
}

@keyframes success-bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.success-text {
    color: #00ff88;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px #00ff88;
}

.success-hint {
    color: rgba(0, 255, 136, 0.6);
    font-size: 14px;
}

/* ====================================
   CHECKBOX GROUP (AGB)
   ==================================== */
.form-checkbox-group {
    margin: 25px 0;
}

    .form-checkbox-group .form-checkbox label {
        line-height: 1.6;
        text-transform: none;
        letter-spacing: 0;
    }

        .form-checkbox-group .form-checkbox label a {
            color: #00ff88;
            text-decoration: underline;
        }

/* ====================================
   MOBILE RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    .gaming-title {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .gaming-card {
        max-width: 100%;
    }

    .card-body {
        padding: 30px 20px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .gaming-logo {
        width: 80px;
        height: 80px;
    }

    .logo-inner {
        font-size: 36px;
    }
}

/* ====================================
   GLITCH EFFECT (Optional)
   ==================================== */
.glitch {
    position: relative;
}

    .glitch::before,
    .glitch::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .glitch::before {
        left: 2px;
        text-shadow: -2px 0 #ff0044;
        clip: rect(24px, 550px, 90px, 0);
        animation: glitch-anim-1 2s infinite linear alternate-reverse;
    }

    .glitch::after {
        left: -2px;
        text-shadow: -2px 0 #00ffff;
        clip: rect(85px, 550px, 140px, 0);
        animation: glitch-anim-2 2s infinite linear alternate-reverse;
    }

@keyframes glitch-anim-1 {
    0% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    100% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    100% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }
}

/* ====================================
   TERMINAL CURSOR ANIMATION
   ==================================== */
@keyframes terminal-cursor {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ====================================
   NEON PULSE
   ==================================== */
@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 30px #00ff88;
    }

    50% {
        text-shadow: 0 0 20px #00ff88, 0 0 30px #00ff88, 0 0 40px #00ff88, 0 0 50px #00ff88;
    }
}

/* ====================================
   CUSTOM SCROLLBAR
   ==================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #00ff44;
    }
