/* Authentication Pages Styles */

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--background-darker);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.2);
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.3);
}

.btn-auth:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(var(--accent-color-rgb), 0.2);
}

.btn-auth::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-auth:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links p {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.auth-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.forgot-password {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
}

.terms-link {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--secondary-color);
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.toggle-password:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.password-strength-meter {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-bar.weak {
    width: 33.33%;
    background-color: #dc3545;
}

.strength-bar.medium {
    width: 66.66%;
    background-color: #ffc107;
}

.strength-bar.strong {
    width: 100%;
    background-color: #28a745;
}

.password-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Form status messages */
.form-status {
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.form-status.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Active navigation link */
.nav-links li.active a {
    color: var(--secondary-color);
}

.nav-links li.active a::after {
    width: 100%;
}

/* Loading state */
.btn-auth.loading {
    position: relative;
    color: transparent;
}

.btn-auth.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .auth-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .btn-auth {
        padding: 0.8rem;
    }
    
    .auth-form .form-control {
        padding: 0.7rem 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.25rem;
        margin: 0.75rem;
    }
    
    .auth-form {
        gap: 1.25rem;
    }
    
    .btn-auth {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .auth-links {
        margin-top: 1.25rem;
    }
    
    .auth-links p {
        font-size: 0.9rem;
    }
}
