/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* Background Blob */
.background-blob {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 60% 60%, rgba(7, 40, 131, 0.1), transparent 70%);
    z-index: -1;
    opacity: 3;
}

/* Container */
.auth-container {
    width: 100%;
    max-width: 420px;
}

/* Auth Card */
.auth-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Tab Buttons */
.auth-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.auth-tabs button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

.auth-tabs button.active {
    color: #0f172a;
    border-bottom: 3px solid #0f172a;
}

/* Forms */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.auth-form.active {
    display: flex;
}

/* Input Groups */
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group input {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #0f172a;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #444;
}

.checkbox-group input[type="checkbox"] {
    transform: scale(1.1);
}

/* Primary Button */
.primary-btn {
    background-color: #222;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #1b1b1b;
}

/* Secondary Button */
.secondary-btn {
    background-color: #f1f1f1;
    color: #444;
    border: none;
    padding: 0.7rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: #e5e5e5;
}

/* Google Button */
.google-btn {
    background-color: #f1f1f1;
    color: #444;
    text-align: center;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.google-btn:hover {
    background-color: #e5e5e5;
}

/* Small Link */
.small-link {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.small-link a {
    color: #0f172a;
    text-decoration: none;
}

.small-link a:hover {
    text-decoration: underline;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.active {
    display: flex;
}

/* Popup Card */
.popup-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-card.verification {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.popup-card.verification i {
    color: #10b981;
    font-size: 1.5rem;
}

.popup-card p {
    font-size: 1rem;
    line-height: 1.4;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.popup-buttons button {
    flex: 1;
    padding: 0.7rem;
}

/* Utility Cards (Messages) */
.message-card {
    background-color: #f1faff;
    border: 1px solid #d0ecff;
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    display: none;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.message-card.active {
    display: flex;
}

.message-card i {
    color: #0ea5e9;
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Specific Card Styles */
.message-card.success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.message-card.success i {
    color: #16a34a;
}

.message-card.warning {
    background-color: #fff7ed;
    border-color: #fed7aa;
    color: #78350f;
}

.message-card.warning i {
    color: #f97316;
}

.message-card.recovery {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.message-card.recovery i {
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-tabs button {
        font-size: 0.9rem;
    }

    .input-group input {
        font-size: 0.9rem;
    }

    .primary-btn,
    .google-btn,
    .secondary-btn {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .popup-card {
        width: 95%;
        padding: 1rem;
    }
}