/* GameChain Theme CSS - For All Account Pages */

/* Dark Gaming Theme Variables */
:root {
    --gamechain-dark: #0d1117;
    --gamechain-darker: #010409;
    --gamechain-gold: #f4b942;
    --gamechain-gold-hover: #e6a635;
    --gamechain-gray: #21262d;
    --gamechain-light-gray: #8b949e;
    --gamechain-white: #ffffff;
    --gamechain-border: #30363d;
}

/* Body and Background */
body.gamechain-signin, body.gamechain-signup, body.gamechain-forgot {
    background: linear-gradient(135deg, var(--gamechain-darker) 0%, var(--gamechain-dark) 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gamechain-white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Gaming Background Pattern - More Subtle */
body.gamechain-signin::before, body.gamechain-signup::before, body.gamechain-forgot::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(244, 185, 66, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 185, 66, 0.03) 0%, transparent 50%);
    z-index: -1;
}

/* Gaming Grid Pattern - Much Lighter */
.gamechain-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(244, 185, 66, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 185, 66, 0.01) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
}

/* Main Container - Reduced Padding */
.gamechain-signin-container, .gamechain-signup-container, .gamechain-forgot-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}

/* Cards - Reduced Padding */
.gamechain-signin-card, .gamechain-signup-card, .gamechain-forgot-card {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--gamechain-border);
    border-radius: 16px;
    padding: 30px 25px;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(244, 185, 66, 0.08);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Signup card wider */
.gamechain-signup-card {
    max-width: 460px;
    padding: 25px 20px;
}

/* Card Glow Effect - More Subtle */
.gamechain-signin-card::before, .gamechain-signup-card::before, .gamechain-forgot-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--gamechain-gold), transparent, var(--gamechain-gold));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.1;
    animation: borderGlow 4s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.1; }
    100% { opacity: 0.2; }
}

/* Logo - Reduced Margin */
.gamechain-logo {
    text-align: center;
    margin-bottom: 20px;
}

.gamechain-logo img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(244, 185, 66, 0.2));
}

/* Header - Reduced Margin */
.gamechain-header {
    text-align: center;
    margin-bottom: 25px;
}

.gamechain-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gamechain-white);
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--gamechain-white) 0%, var(--gamechain-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gamechain-subtitle {
    font-size: 14px;
    color: var(--gamechain-light-gray);
    font-weight: 400;
}

/* Form Inputs - Reduced Margin */
.gamechain-input-group {
    margin-bottom: 15px;
    position: relative;
}

.gamechain-input, .gamechain-select {
    width: 100%;
    height: 45px;
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid var(--gamechain-border);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--gamechain-white);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.gamechain-input::placeholder {
    color: var(--gamechain-light-gray);
}

.gamechain-input:focus, .gamechain-select:focus {
    border-color: var(--gamechain-gold);
    box-shadow: 0 0 0 2px rgba(244, 185, 66, 0.1);
    background: rgba(33, 38, 45, 1);
}

/* Select dropdown styling */
.gamechain-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4b942' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 45px;
}

.gamechain-select option {
    background: var(--gamechain-dark);
    color: var(--gamechain-white);
    padding: 8px;
}

/* Gaming Button - Reduced Height */
.gamechain-btn {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, var(--gamechain-gold) 0%, #e6a635 100%);
    border: none;
    border-radius: 10px;
    color: var(--gamechain-darker);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.gamechain-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 185, 66, 0.3);
}

.gamechain-btn:active {
    transform: translateY(0);
}

/* Button Loading State */
.gamechain-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.gamechain-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid var(--gamechain-darker);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Options Row - Reduced Margin */
.gamechain-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 13px;
}

.gamechain-remember {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gamechain-remember label {
    color: var(--gamechain-light-gray);
    cursor: pointer;
    user-select: none;
}

.gamechain-checkbox {
    width: 16px;
    height: 16px;
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid var(--gamechain-border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.gamechain-checkbox:checked {
    background: var(--gamechain-gold);
    border-color: var(--gamechain-gold);
}

.gamechain-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gamechain-darker);
    font-size: 11px;
    font-weight: bold;
}

.gamechain-forgot-link, .gamechain-register-link, .gamechain-login-link {
    color: var(--gamechain-gold);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 13px;
}

.gamechain-forgot-link:hover, .gamechain-register-link:hover, .gamechain-login-link:hover {
    color: var(--gamechain-gold-hover);
}

/* Register/Login Links - Reduced Margin */
.gamechain-register, .gamechain-login-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--gamechain-border);
}

.gamechain-register-text, .gamechain-login-text {
    color: var(--gamechain-light-gray);
    font-size: 13px;
}

/* Back to Home Link - Smaller */
.gamechain-back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--gamechain-light-gray);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gamechain-back-home:hover {
    color: var(--gamechain-gold);
}

/* Sponsor Name Label */
.gamechain-sponsor-name {
    color: var(--gamechain-gold);
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    font-size: 13px;
}

/* Password Strength Indicator */
.weak-password {
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
}

.medium-password {
    color: #f59e0b;
    font-size: 11px;
    margin-top: 4px;
}

.strong-password {
    color: #10b981;
    font-size: 11px;
    margin-top: 4px;
}

/* Password Toggle Eye Icon */
.gamechain-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gamechain-light-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 14px;
}

.gamechain-password-toggle:hover {
    color: var(--gamechain-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gamechain-signin-card, .gamechain-signup-card, .gamechain-forgot-card {
        padding: 25px 20px;
        margin: 15px;
        border-radius: 14px;
    }
    
    .gamechain-title {
        font-size: 22px;
    }
    
    .gamechain-back-home {
        position: static;
        margin-bottom: 15px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gamechain-signin-container, .gamechain-signup-container, .gamechain-forgot-container {
        padding: 10px;
    }
    
    .gamechain-signin-card, .gamechain-signup-card, .gamechain-forgot-card {
        padding: 20px 15px;
    }
    
    .gamechain-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Spinner Overlay */
.gamechain-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.gamechain-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(244, 185, 66, 0.3);
    border-top: 3px solid var(--gamechain-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hide default glow effects */
.glow__area {
    display: none;
}

/* Override existing form styles */
.gamechain-signin .form-control,
.gamechain-signup .form-control,
.gamechain-forgot .form-control {
    background: rgba(33, 38, 45, 0.8) !important;
    border: 1px solid var(--gamechain-border) !important;
    color: var(--gamechain-white) !important;
    border-radius: 10px !important;
    height: 45px !important;
}

.gamechain-signin .form-control:focus,
.gamechain-signup .form-control:focus,
.gamechain-forgot .form-control:focus {
    border-color: var(--gamechain-gold) !important;
    box-shadow: 0 0 0 2px rgba(244, 185, 66, 0.1) !important;
    background: rgba(33, 38, 45, 1) !important;
}