/* ============================================
   ARK Identity - Auth UI Styles
   ============================================ */

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a2b3c 0%, #143348 100%);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    margin-bottom: 15px;
}

.auth-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.auth-title .gold {
    color: #e8b562;
}

.auth-title .maroon {
    color: #fff;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-style: italic;
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: #5f0c0b;
    color: white;
}

.auth-tab:hover:not(.active) {
    background: #eee;
}

/* Forms */
.auth-form {
    display: none;
}

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

.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #5f0c0b;
}

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

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5f0c0b 0%, #7a1a19 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(95, 12, 11, 0.4);
}

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

/* Forgot Password Link */
.forgot-password {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #5f0c0b;
    font-size: 14px;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 13px;
}

/* Social Auth Buttons */
.social-auth-buttons {
    display: flex;
    gap: 12px;
}

.social-auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.social-auth-btn:hover {
    background: #eee;
    border-color: #ccc;
}

.social-auth-btn.google:hover {
    border-color: #4285F4;
}

.social-auth-btn.discord:hover {
    border-color: #5865F2;
}

/* Skip Button */
.skip-auth-btn {
    margin-top: 25px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.skip-auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer Text */
.auth-footer-text {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.6;
}

/* Notifications */
.auth-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.auth-notification.show {
    transform: translateX(-50%) translateY(0);
}

.auth-notification.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-notification.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ============================================
   Account Section (Profile Page)
   ============================================ */

.account-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Not Logged In */
.account-section.not-logged-in .account-promo {
    text-align: center;
    padding: 20px;
}

.account-promo h3 {
    color: #5f0c0b;
    margin-bottom: 10px;
}

.account-promo p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Logged In */
.account-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5f0c0b, #e8b562);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar span {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.account-details h3 {
    color: #333;
    margin-bottom: 2px;
}

.account-details p {
    color: #666;
    font-size: 13px;
}

.account-actions {
    display: flex;
    gap: 10px;
}

.account-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.account-btn.sync {
    background: #143348;
    color: white;
}

.account-btn.sync:hover {
    background: #1a2b3c;
}

.account-btn.signout {
    background: #f5f5f5;
    color: #666;
}

.account-btn.signout:hover {
    background: #eee;
}

.account-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .social-auth-buttons {
        flex-direction: column;
    }
    
    .auth-title {
        font-size: 24px;
    }
}
