/* =============================================
   Tech Auth Pages Styles
   ============================================= */

/* Background & Container */
.tech-auth-bg {
    min-height: 100vh;
    background: #050505;
    position: relative;
    overflow: hidden;
}

.tech-auth-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(38, 211, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(38, 211, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Grid Pattern */
.tech-auth-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(38, 211, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 211, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Animated Lines */
.tech-auth-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.tech-auth-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent,
        rgba(38, 211, 0, 0.3),
        transparent
    );
    animation: techAuthLineMove 8s ease-in-out infinite;
}

.tech-auth-line:nth-child(1) { left: 10%; animation-delay: 0s; }
.tech-auth-line:nth-child(2) { left: 30%; animation-delay: 2s; }
.tech-auth-line:nth-child(3) { left: 50%; animation-delay: 4s; }
.tech-auth-line:nth-child(4) { left: 70%; animation-delay: 1s; }
.tech-auth-line:nth-child(5) { left: 90%; animation-delay: 3s; }

@keyframes techAuthLineMove {
    0%, 100% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        transform: translateY(100%);
        opacity: 1;
    }
}

/* Container */
.tech-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Card */
.tech-auth-card {
    width: 100%;
    max-width: 480px;
    position: relative;
}

/* Card Frame */
.tech-auth-frame {
    position: relative;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(38, 211, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
}

.tech-auth-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #26d300, transparent);
}

/* Corner Brackets */
.tech-auth-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #26d300;
    z-index: 5;
    pointer-events: none;
}

.tech-auth-corner--tl {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.tech-auth-corner--tr {
    top: 8px;
    right: 8px;
    border-left: none;
    border-bottom: none;
}

.tech-auth-corner--bl {
    bottom: 8px;
    left: 8px;
    border-right: none;
    border-top: none;
}

.tech-auth-corner--br {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

/* Header */
.tech-auth-header {
    padding: 40px 40px 0;
    text-align: center;
}

.tech-auth-logo {
    margin-bottom: 25px;
}

.tech-auth-logo img {
    height: 50px;
    width: auto;
}

.tech-auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-auth-title span {
    color: #26d300;
}

.tech-auth-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

/* Body */
.tech-auth-body {
    padding: 40px;
}

/* Alert Messages */
.tech-auth-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-auth-alert--success {
    background: rgba(38, 211, 0, 0.1);
    border: 1px solid rgba(38, 211, 0, 0.3);
    color: #26d300;
}

.tech-auth-alert--info {
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
    color: #64b5f6;
}

.tech-auth-alert--error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.tech-auth-alert i {
    font-size: 1.2rem;
}

/* Form Group */
.tech-form-group {
    margin-bottom: 25px;
    position: relative;
}

.tech-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.tech-form-label .required {
    color: #26d300;
}

/* Input */
.tech-form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tech-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.tech-form-input:focus {
    outline: none;
    border-color: rgba(38, 211, 0, 0.5);
    background: rgba(38, 211, 0, 0.05);
    box-shadow: 0 0 20px rgba(38, 211, 0, 0.15);
}

.tech-form-input.is-invalid {
    border-color: rgba(255, 71, 87, 0.5);
}

/* Password Field */
.tech-password-wrapper {
    position: relative;
}

.tech-password-wrapper .tech-form-input {
    padding-right: 50px;
}

.tech-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.tech-password-toggle:hover {
    color: #26d300;
}

/* Error Message */
.tech-form-error {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Checkbox */
.tech-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.tech-checkbox {
    width: 20px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tech-checkbox:checked {
    background: #26d300;
    border-color: #26d300;
}

.tech-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.tech-checkbox-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

/* Submit Button */
.tech-auth-submit {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #26d300, #1fa300);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.tech-auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(38, 211, 0, 0.4);
}

.tech-auth-submit:hover::before {
    left: 100%;
}

.tech-auth-submit i {
    margin-right: 10px;
}

/* Auth Links */
.tech-auth-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.tech-auth-links a {
    color: #26d300;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-auth-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(38, 211, 0, 0.5);
}

.tech-auth-links-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.tech-auth-links-divider {
    display: block;
    margin: 15px 0;
}

/* Back to Home Link */
.tech-auth-home {
    position: fixed;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 100;
}

.tech-auth-home:hover {
    color: #26d300;
}

.tech-auth-home i {
    font-size: 1.2rem;
}

/* Language Switcher */
.tech-auth-lang {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
}

/* Floating Particles */
.tech-auth-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.tech-auth-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #26d300;
    border-radius: 50%;
    opacity: 0.3;
    animation: techParticleFloat 15s ease-in-out infinite;
}

.tech-auth-particle:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.tech-auth-particle:nth-child(2) { left: 85%; top: 30%; animation-delay: 2s; animation-duration: 14s; }
.tech-auth-particle:nth-child(3) { left: 25%; top: 70%; animation-delay: 4s; animation-duration: 16s; }
.tech-auth-particle:nth-child(4) { left: 75%; top: 80%; animation-delay: 1s; animation-duration: 13s; }
.tech-auth-particle:nth-child(5) { left: 50%; top: 10%; animation-delay: 3s; animation-duration: 15s; }
.tech-auth-particle:nth-child(6) { left: 10%; top: 50%; animation-delay: 5s; animation-duration: 11s; }
.tech-auth-particle:nth-child(7) { left: 90%; top: 60%; animation-delay: 2.5s; animation-duration: 17s; }
.tech-auth-particle:nth-child(8) { left: 40%; top: 90%; animation-delay: 1.5s; animation-duration: 14s; }

@keyframes techParticleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.5);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, -60px) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translate(40px, -30px) scale(1.2);
        opacity: 0.5;
    }
}

/* Scan Effect on Form */
.tech-auth-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #26d300, transparent);
    animation: techAuthScan 3s ease-in-out infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes techAuthScan {
    0%, 100% {
        top: 0;
        opacity: 0;
    }
    50% {
        top: calc(100% - 2px);
        opacity: 0.5;
    }
}

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

@media (max-width: 576px) {
    .tech-auth-container {
        padding: 20px 15px;
    }
    
    .tech-auth-header {
        padding: 30px 25px 0;
    }
    
    .tech-auth-body {
        padding: 30px 25px;
    }
    
    .tech-auth-title {
        font-size: 1.4rem;
    }
    
    .tech-auth-home {
        top: 15px;
        left: 15px;
    }
    
    .tech-auth-lang {
        top: 15px;
        right: 15px;
    }
    
    .tech-form-input {
        padding: 14px 18px;
    }
    
    .tech-auth-submit {
        padding: 15px 25px;
    }
}

/* Hide old styles */
.auth-container,
.auth-card,
.auth-header-wrapper,
.back-to-home,
.language-switcher-auth {
    display: none !important;
}
