/* Tactical Authentication Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #00aa00;
    overflow-x: hidden;
    position: relative;
}

/* Tactical Grid Background */
.tactical-auth-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0,170,0,0.1) 1px, transparent 1px),
        linear-gradient(rgba(0,170,0,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 2s ease-in-out 3s forwards;
}

.loading-content {
    text-align: center;
    color: #00aa00;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0,170,0,0.3);
    border-top: 3px solid #00aa00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 14px;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

/* Main Container */
.tactical-auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

/* Left Panel - Form */
.auth-form-panel {
    background: rgba(10,10,10,0.95);
    border-right: 2px solid #00aa00;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,170,0,0.1), transparent);
    animation: scanEffect 3s ease-in-out infinite;
}

@keyframes scanEffect {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.auth-logo img {
    height: 40px;
    margin-right: 10px;
}

.auth-logo span {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #00aa00;
    text-shadow: 0 0 10px rgba(0,170,0,0.5);
}

/* Form Styling */
.auth-form {
    position: relative;
    z-index: 2;
}

.auth-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    color: #00aa00;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #00aa00;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.8);
    border: 2px solid #00aa00;
    border-radius: 0;
    color: #00aa00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0,255,0,0.3);
    background: rgba(0,0,0,0.9);
}

.form-control::placeholder {
    color: rgba(0,170,0,0.5);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #00aa00;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #00ff00;
}

/* Checkbox Styling */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #00aa00;
    background: rgba(0,0,0,0.8);
    border: 2px solid #00aa00;
}

.form-check-label {
    color: #00aa00;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00aa00, #00ff00);
    border: none;
    border-radius: 0;
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::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;
}

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

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,170,0,0.4);
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-link {
    color: #00aa00;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.auth-link:hover {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0,255,0,0.5);
}

/* Right Panel - Background */
.auth-bg-panel {
    background: linear-gradient(135deg, #00aa00, #00ff00);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-bg-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/auth-bg.jpg') center/cover;
    opacity: 0.3;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 80px;
    height: 80px;
    left: 20%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 70%;
    animation-delay: 2s;
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 40%;
    animation-delay: 3s;
}

.floating-element:nth-child(5) {
    width: 50px;
    height: 50px;
    left: 80%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Content Overlay */
.auth-content-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px;
}

.auth-welcome-text {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.auth-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Error Messages */
.error-message {
    background: rgba(255,0,0,0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Success Messages */
.success-message {
    background: rgba(0,170,0,0.1);
    border: 1px solid #00aa00;
    color: #00aa00;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tactical-auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-bg-panel {
        display: none;
    }
    
    .auth-form-panel {
        border-right: none;
        border-bottom: 2px solid #00aa00;
    }
    
    .auth-logo span {
        font-size: 20px;
    }
    
    .auth-title {
        font-size: 16px;
    }
    
    .auth-welcome-text {
        font-size: 24px;
    }
    
    .auth-description {
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auth-form-panel {
        background: rgba(0,0,0,0.98);
    }
}

/* Enhanced Animations */
.form-control.enhanced {
    animation: formGlow 2s ease-in-out infinite alternate;
}

@keyframes formGlow {
    from { box-shadow: 0 0 5px rgba(0,170,0,0.3); }
    to { box-shadow: 0 0 15px rgba(0,170,0,0.6); }
}

.auth-submit-btn.enhanced {
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
} 