/* Special styles for auth page containers */
.auth-page main {
    display: flex;
    flex: 1;
    padding: 0;
    margin-bottom: 0;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 30px 20px;
    background: linear-gradient(135deg, #0d102a 0%, #172040 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 0;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    background-color: rgba(18, 21, 29, 0.95);
    border: 1px solid #2a3040;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

/* Header with logo and title */
.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-logo {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo img {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(62, 147, 255, 0.5));
}

.auth-logo i {
    color: #3e93ff;
    filter: drop-shadow(0 0 10px rgba(62, 147, 255, 0.5));
    margin-bottom: 10px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-form {
    margin-top: 20px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #b1b8c9;
    font-weight: 500;
}

/* Input with icon styling */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #3e93ff;
    font-size: 16px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background-color: rgba(22, 26, 37, 0.8);
    border: 1px solid #2a3040;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: #3e93ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(62, 147, 255, 0.2);
}

/* Remember me and forgot password row */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #3e93ff;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
}

.forgot-link {
    color: #3e93ff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #5da5ff;
    text-decoration: underline;
}

.form-actions {
    margin-top: 25px;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: #3e93ff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2076e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(62, 147, 255, 0.3);
}

/* Or divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    background-color: rgba(18, 21, 29, 0.95);
    color: #b1b8c9;
    font-size: 14px;
    z-index: 1;
}

/* Social login buttons */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-btn.discord {
    background-color: #5865F2;
}

.social-btn.google {
    background-color: #EA4335;
}

.social-btn.vk {
    background-color: #4C75A3;
}

.auth-footer {
    text-align: center;
    color: #b1b8c9;
    font-size: 15px;
    margin-top: 20px;
    padding-bottom: 0;
}

.auth-footer a {
    color: #3e93ff;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert styles */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-danger {
    background-color: rgba(255, 62, 62, 0.1);
    color: #ff5252;
    border-color: #ff3e3e;
}

/* Terms page styling */
.terms-content {
    padding: 60px 0;
    background-color: #12151d;
    color: #b1b8c9;
}

.terms-content .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.terms-content h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.terms-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a3040;
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.terms-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.terms-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-section ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Animation for button and elements */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(62, 147, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(62, 147, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(62, 147, 255, 0);
    }
}

.btn-primary:focus {
    animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-box {
        padding: 25px 15px;
    }
    
    .auth-box h2 {
        font-size: 22px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .terms-content h1 {
        font-size: 30px;
    }
    
    .terms-section h2 {
        font-size: 20px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 20px 12px;
    }
    
    .auth-box h2 {
        font-size: 20px;
    }
    
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 12px 15px 12px 40px;
        font-size: 15px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Checkbox styling improvements */
.form-group.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 25px;
}

.form-group.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
}

.form-group.checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
    color: #b1b8c9;
}

.form-group.checkbox-group label a {
    color: #3e93ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.form-group.checkbox-group label a:hover {
    color: #5da5ff;
    text-decoration: underline;
}

/* Form hints */
.form-hint {
    font-size: 12px;
    color: #8a8a94;
    margin-top: 6px;
    padding-left: 2px;
}

/* Password strength indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bars {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.strength-bars span {
    height: 5px;
    flex: 1;
    border-radius: 2px;
    background-color: #2a3040;
    transition: background-color 0.3s;
}

.strength-bars.weak span:nth-child(1) {
    background-color: #ff3e3e;
}

.strength-bars.medium span:nth-child(1),
.strength-bars.medium span:nth-child(2) {
    background-color: #ffaa3e;
}

.strength-bars.strong span:nth-child(1),
.strength-bars.strong span:nth-child(2),
.strength-bars.strong span:nth-child(3) {
    background-color: #ffde3e;
}

.strength-bars.very-strong span {
    background-color: #3eff5c;
}

.strength-text {
    font-size: 12px;
    color: #8a8a94;
}

/* Password visibility toggle button (future implementation) */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8a8a94;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #3e93ff;
}

/* Responsive adjustments for complex forms */
@media (max-width: 480px) {
    .form-group.checkbox-group {
        margin-top: 15px;
    }
    
    .form-group.checkbox-group input[type="checkbox"] {
        min-width: 16px;
        height: 16px;
    }
    
    .password-strength {
        margin-top: 8px;
    }
    
    .form-hint {
        font-size: 11px;
        margin-top: 4px;
    }
}

/* Auth footer improvements */
.auth-footer {
    text-align: center;
    color: #b1b8c9;
    font-size: 15px;
    margin-top: 20px;
    padding-bottom: 0;
}

/* Adjustments for page-container to ensure no gaps */
.auth-page .page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure footer connects properly */
.auth-page footer {
    margin-top: 0;
} 