/* Authentication Pages Styles - Matching Index.html Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5faff;
    color: #003366;
}

/* Header - Same as index.html */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #003366;
    color: white;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icons a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Auth Container */
.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Auth Card - Matching bento-grid card style */
.auth-card {
    background-color: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.1);
    width: 100%;
    max-width: 440px;
    transition: transform 0.2s ease-in-out;
}

.auth-card:hover {
    transform: translateY(-5px);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #d0e4f7;
}

.auth-tab {
    flex: 1;
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b9dc9;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: #0066cc;
}

.auth-tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

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

.auth-logo {
    font-size: 48px;
    margin-bottom: 1rem;
    display: inline-block;
}

.auth-title {
    font-size: 28px;
    font-weight: bold;
    color: #004080;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 15px;
    color: #003366;
    font-weight: 400;
}

/* Google Sign-In Container (Centered) */
.google-signin-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #003366;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #d0e4f7;
    border-radius: 8px;
    background: #ffffff;
    color: #003366;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    background: #f5faff;
}

.form-input::placeholder {
    color: #6b9dc9;
}

/* Error Message */
.error-message {
    background: #ffe6e6;
    border: 1px solid #ff6b6b;
    color: #c92a2a;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

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

.btn-google {
    background: white;
    color: #003366;
    border: 2px solid #d0e4f7;
}

.btn-google:hover {
    background: #f5faff;
    border-color: #0066cc;
    transform: translateY(-2px);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    right: 16px;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #6b9dc9;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #d0e4f7;
}

.divider span {
    padding: 0 16px;
    font-weight: 500;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d0e4f7;
}

.auth-footer p {
    font-size: 14px;
    color: #003366;
}

.auth-footer a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Back to Home Link */
.back-home {
    text-align: center;
    margin-top: 1.5rem;
}

.back-home a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-home a:hover {
    text-decoration: underline;
}

/* Small text helper */
small {
    color: #6b9dc9;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .auth-container {
        padding: 1.5rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .form-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .auth-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}