﻿/* Authentication Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-header h1 {
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.auth-form .form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3);
}

.auth-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(45deg, #00d4ff, #5a67d8);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: #00d4ff;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b7a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #40e070;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-validation-error {
    color: #ff6b7a;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-check-input {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin: 0;
    margin-right: 8px;
    flex-shrink: 0;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-check-label a {
    color: #00d4ff;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Registration-specific styles */
.form-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.form-section h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.optional {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

.password-requirements {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-requirements small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 4px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-requirements li::before {
    content: "✗";
    color: #ff6b7a;
    font-weight: bold;
}

.password-requirements li.valid {
    color: #40e070;
}

.password-requirements li.valid::before {
    content: "✓";
    color: #40e070;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-card {
        max-width: 100%;
        margin: 0 10px;
        padding: 1.5rem;
    }
    
    .form-check {
        align-items: flex-start;
    }
    
    .form-check-label {
        font-size: 0.85rem;
    }
}