/**
 * Authentication CSS - Winter Storm Systems
 * Login, register, and password reset styling
 */

/* ==================== RESET ====================
   Auth pages are standalone (they don't load main.css), so they need their
   own reset. Without box-sizing:border-box the full-width inputs overflow the
   card, and without zeroing body margin the full-screen gradient leaves a gap. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* ==================== AUTH PAGE LAYOUT ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.auth-logo {
    font-size: 36px;
    margin-bottom: 10px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    opacity: 0.9;
}

.auth-body {
    padding: 40px 30px;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.form-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    display: block;
}

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

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.form-check label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

/* ==================== BUTTONS ==================== */
.btn-auth {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

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

.btn-auth i {
    margin-right: 8px;
}

/* ==================== LINKS ==================== */
.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

/* ==================== OAUTH BUTTONS ==================== */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-oauth {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-oauth:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.btn-oauth i {
    font-size: 18px;
}

.btn-oauth.discord {
    color: #5865F2;
}

.btn-oauth.google {
    color: #DB4437;
}

.btn-oauth.wss {
    color: #3498db;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert i {
    margin-right: 8px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 500px) {
    .auth-page {
        padding: 10px;
    }

    .auth-header {
        padding: 30px 20px 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-body {
        padding: 30px 20px;
    }

    .form-control {
        padding: 10px 12px;
    }

    .btn-auth {
        padding: 12px 16px;
    }
}

/* ==================== PASSWORD STRENGTH ==================== */
.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.weak {
    width: 33%;
    background: #e74c3c;
}

.password-strength-fill.medium {
    width: 66%;
    background: #f39c12;
}

.password-strength-fill.strong {
    width: 100%;
    background: #2ecc71;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.password-strength-text.weak {
    color: #e74c3c;
}

.password-strength-text.medium {
    color: #f39c12;
}

.password-strength-text.strong {
    color: #2ecc71;
}
