/**
 * LINUXENIC Google Auth - Styles v2.0.0
 * Prefix: lnx-auth-* (to avoid conflict with linuxenic-lms)
 */

/* =============================================
   AUTH WRAPPER & CARD
   ============================================= */

.lnx-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.lnx-auth-card {
    background: #1E1E1E;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.lnx-auth-card::before,
.lnx-auth-card::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #0f0f0f;
    border-radius: 50%;
}

.lnx-auth-card::before { top: -3px; left: -3px; }
.lnx-auth-card::after { top: -3px; right: -3px; }

/* =============================================
   TABS
   ============================================= */

.lnx-auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
}

.lnx-auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lnx-auth-tab:hover { color: #fff; }
.lnx-auth-tab.active { color: #FFD700; border-bottom: 2px solid #FFD700; }

/* =============================================
   TAB CONTENT
   ============================================= */

.lnx-auth-tab-content { display: none; }
.lnx-auth-tab-content.active { display: block; }

/* =============================================
   FORM
   ============================================= */

.lnx-auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lnx-auth-input-group input {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: none;
    border-bottom: 1px solid #444;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.lnx-auth-input-group input:focus {
    outline: none;
    border-bottom-color: #FFD700;
}

.lnx-auth-input-group input::placeholder { color: #777; }

/* =============================================
   OPTIONS (Remember Me & Forgot Password)
   ============================================= */

.lnx-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.lnx-auth-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lnx-auth-options label:hover { color: #fff; }
.lnx-auth-options input[type="checkbox"] { width: auto; accent-color: #FFD700; }
.lnx-auth-options a { color: #888; text-decoration: none; transition: color 0.3s ease; }
.lnx-auth-options a:hover { color: #FFD700; }

/* =============================================
   BUTTONS
   ============================================= */

.lnx-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.lnx-auth-btn-primary {
    width: 100%;
    background: #FFD700;
    color: #000;
}

.lnx-auth-btn-primary:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.lnx-auth-btn-secondary {
    background: transparent;
    border: 1px solid #444;
    color: #888;
}

.lnx-auth-btn-secondary:hover {
    border-color: #FFD700;
    color: #FFD700;
}

.lnx-auth-btn-link {
    background: none;
    border: none;
    color: #FFD700;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lnx-auth-btn-link:hover { color: #fff; text-decoration: underline; }
.lnx-auth-btn-link:disabled { color: #555; cursor: not-allowed; }

/* =============================================
   GOOGLE BUTTON
   ============================================= */

.lnx-auth-btn-google {
    width: 100%;
    background: #fff;
    color: #333;
    font-weight: 500;
    text-transform: none;
}

.lnx-auth-btn-google:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #333;
    text-decoration: none;
}

.lnx-auth-btn-google svg { flex-shrink: 0; }

/* =============================================
   DIVIDER
   ============================================= */

.lnx-auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

.lnx-auth-divider::before,
.lnx-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.lnx-auth-divider span { padding: 0 15px; }

/* =============================================
   OTP VERIFICATION
   ============================================= */

.lnx-auth-verify-header {
    text-align: center;
    margin-bottom: 25px;
}

.lnx-auth-verify-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.lnx-auth-verify-header h3 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.lnx-auth-verify-header p {
    color: #888;
    font-size: 14px;
    margin: 5px 0;
}

.lnx-auth-verify-email {
    color: #FFD700 !important;
    font-weight: 600;
    word-break: break-all;
}

.lnx-auth-otp-input {
    text-align: center !important;
    font-size: 24px !important;
    font-family: monospace !important;
    letter-spacing: 8px !important;
    font-weight: bold !important;
}

.lnx-auth-otp-input::placeholder {
    letter-spacing: 0 !important;
    font-size: 14px !important;
}

.lnx-auth-resend-wrapper {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.lnx-auth-resend-wrapper p {
    color: #888;
    font-size: 13px;
    margin: 0 0 8px 0;
}

#lnx-auth-resend-timer {
    color: #888;
    font-size: 13px;
}

.lnx-auth-back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

/* =============================================
   MESSAGES
   ============================================= */

.lnx-auth-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.lnx-auth-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.lnx-auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* =============================================
   GOOGLE WRAPPER (for LWA integration)
   ============================================= */

.lnx-auth-google-wrapper {
    margin-top: 15px;
}

.lnx-auth-google-wrapper .lnx-auth-divider {
    margin: 15px 0;
}

/* =============================================
   LOADING STATE
   ============================================= */

.lnx-auth-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.lnx-auth-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: lnx-auth-spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes lnx-auth-spin { to { transform: rotate(360deg); } }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 480px) {
    .lnx-auth-card { padding: 20px; }
    .lnx-auth-tabs { margin-bottom: 20px; }
    .lnx-auth-tab { padding: 10px; font-size: 13px; }
    .lnx-auth-options { flex-direction: column; gap: 10px; align-items: flex-start; }
    .lnx-auth-btn { padding: 10px 15px; font-size: 13px; }
    .lnx-auth-otp-input { font-size: 20px !important; letter-spacing: 5px !important; }
    .lnx-auth-verify-icon { font-size: 36px; }
    .lnx-auth-verify-header h3 { font-size: 18px; }
}

/* =============================================
   ANIMATION
   ============================================= */

@keyframes lnx-auth-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#lnx-auth-verify.active {
    animation: lnx-auth-fadeIn 0.3s ease;
}