/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    overflow-x: hidden;
    min-height: 100vh;
}

.top-actions {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.home-btn {
    text-decoration: none;
    background: #444494;
    border: 1px solid #444494;
    color: #ffffff;
    padding: 0.6rem 1.1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.home-btn:hover {
    background: #444494;
    border-color: #444494;
    color: #ffffff;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Text Logo */
.logo-section { text-align: center; margin-bottom: 40px; }
.logo-badge {
    display: inline-block;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.logo-text { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.5px; }
.logo-cheap { color: #000000; }
.logo-seo { color: #444494; }
.brand-subtitle { color: #475569; font-size: 0.95rem; margin-top: 8px; }

/* Tabs */
.tab-navigation {
    display: flex;
    background: #f1f5f9;
    border-radius: 0;
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}
.tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tab-btn.active {
    background: #444494;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(68, 68, 148, 0.25);
}
.tab-btn:hover:not(.active) {
    color: #0f172a;
    background: #e2e8f0;
}

/* Forms */
.form-container { display: none; animation: fadeIn 0.4s ease-in-out; }
.form-container.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: translateY(0);} }

.form-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; text-align: center; color: #0f172a; }
.form-subtitle { color: #475569; text-align: center; margin-bottom: 20px; font-size: 0.95rem; }

.auth-form { width: 100%; }
.form-row { display: flex; gap: 12px; margin-bottom: 16px; }
.form-group { margin-bottom: 14px; flex: 1; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 14px; color: #94a3b8; font-size: 1rem; z-index: 2; }
.auth-form input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    color: #0f172a;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
}
.auth-form input:focus {
    outline: none;
    border-color: #444494;
    box-shadow: 0 0 0 3px rgba(68, 68, 148, 0.18);
    background: #ffffff;
}
.auth-form input::placeholder { color: #64748b; }

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.2s ease;
}
.password-toggle:hover { color: #0f172a; }

.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.checkbox-wrapper { display: flex; align-items: center; cursor: pointer; font-size: 0.9rem; color: #475569; }
.checkbox-wrapper input[type="checkbox"] { display: none; }
.checkmark {
    width: 18px; height: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    margin-right: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.checkbox-wrapper input[type="checkbox"]:checked + .checkmark { background: #444494; border-color: #444494; }
.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after { content: "✓"; color: white; font-size: 0.8rem; font-weight: bold; }
.checkbox-text a { color: #444494; text-decoration: none; font-weight: 600; }
.checkbox-text a:hover { text-decoration: underline; }
.forgot-password { color: #444494; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.forgot-password:hover { text-decoration: underline; }

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #444494;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(68, 68, 148, 0.25);
    margin-bottom: 18px;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(68, 68, 148, 0.5); }
.submit-btn:active { transform: translateY(0); }

.social-login { width: 100%; }
.divider { text-align: center; margin: 18px 0; position: relative; color: #64748b; font-size: 0.85rem; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e5e7eb; }
.divider span { background: #ffffff; padding: 0 20px; position: relative; z-index: 1; }

.social-buttons { display: flex; gap: 12px; width: 100%; }
.social-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 0.95rem; font-weight: 600;
    font-family: 'Inter', sans-serif; outline: none;
}
.google-btn { position: relative; overflow: hidden; }
.google-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent); transition: left 0.5s ease; }
.google-btn:hover::before { left: 100%; }
.google-btn:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
.google-btn:active { transform: translateY(0); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06); }
.google-icon { flex-shrink: 0; transition: transform 0.2s ease; }
.google-btn:hover .google-icon { transform: scale(1.06); }
.google-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

@media (max-width: 480px) {
    .logo-text { font-size: 1.4rem; }
    .auth-card { padding: 24px; }
}
