/* =============================================================================
   VATos - Autentykacja CSS
   ============================================================================= */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f1e, #1a1a2e);
    background-attachment: fixed;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #00d9ff, #00ff41);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.auth-left h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    -webkit-text-fill-color: unset;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.auth-left p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.auth-features {
    text-align: left;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h3 {
    color: white;
    margin: 0;
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.auth-right {
    flex: 1;
    padding: 3rem;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-container {
    width: 100%;
}

.auth-form-title {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: #e0e0e0;
}

.auth-form-subtitle {
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.form-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #333;
}

.form-tab {
    padding: 1rem;
    background: none;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.form-tab:hover {
    color: #e0e0e0;
}

.form-tab.active {
    color: #e94560;
    border-bottom-color: #e94560;
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background-color: #16213e;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
    background-color: #0f1d35;
}

.form-group.error input {
    border-color: #ff2d55;
    background-color: rgba(255, 45, 85, 0.1);
}

.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    accent-color: #00d9ff;
    cursor: pointer;
}

.form-checkbox label {
    margin: 0;
    color: #b0b0b0;
    cursor: pointer;
    font-weight: 400;
}

.form-checkbox a {
    color: #00d9ff;
}

.btn-auth {
    background: linear-gradient(135deg, #00d9ff, #00ff41);
    color: #050812;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.7), 0 0 15px rgba(0, 255, 65, 0.5);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: #b0b0b0;
}

.auth-footer a {
    color: #00d9ff;
    font-weight: 600;
}

.auth-footer a:hover {
    color: #00ff41;
}

.loading {
    display: none;
    text-align: center;
}

.loading.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-spinner {
    border: 3px solid rgba(233, 69, 96, 0.2);
    border-top-color: #e94560;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

/* Alert messages */
.alert-auth {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid;
    display: none;
}

.alert-auth.show {
    display: block;
}

.alert-auth.success {
    background-color: rgba(0, 212, 170, 0.1);
    border-color: #00d4aa;
    color: #00d4aa;
}

.alert-auth.error {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .auth-left {
        padding: 2rem;
        min-height: 300px;
    }
    
    .auth-left h1 {
        font-size: 2rem;
    }
    
    .auth-right {
        padding: 2rem;
    }
    
    .auth-features {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 1.5rem;
    }
    
    .auth-form-title {
        font-size: 1.5rem;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .form-tab {
        padding: 0.75rem;
        border-bottom: none;
        border-left: 3px solid transparent;
        margin-bottom: 0;
        margin-left: -3px;
    }
    
    .form-tab.active {
        border-left-color: #e94560;
        border-bottom-color: transparent;
    }
}
