/* style.css - Minimalist Elegant White Portal */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #0f172a;
    --accent-color: #3b82f6;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --transition: 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .btn-login {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: background-color var(--transition);
}

.nav-links .btn-login:hover {
    background-color: #334155;
    color: #fff;
}

/* Profile Dropdown */
.nav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.profile-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.nav-profile:hover .dropdown-menu {
    display: block;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.user-info-header {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.user-info-header strong {
    color: var(--primary-color);
    display: block;
    font-size: 0.95rem;
    margin-top: 2px;
}

.dropdown-item {
    display: block;
    padding: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--bg-secondary);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

.hero .btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color var(--transition);
}

.hero .btn:hover {
    background-color: #334155;
}

/* Features/Services */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Auth / Login Page */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-secondary);
    padding: 1rem;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    text-align: center;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: var(--bg-color);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-block {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.85rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color var(--transition);
    margin-bottom: 1.5rem;
}

.btn-block:hover {
    background-color: #334155;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #fff;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}

.google-btn:hover {
    background-color: var(--bg-secondary);
    border-color: #cbd5e1;
}

.error-msg {
    background-color: #fef2f2;
    color: #ef4444;
    font-size: 0.85rem;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #fca5a5;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .auth-card {
        padding: 2rem 1.5rem;
    }
    .auth-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero {
        padding: 4rem 0;
    }
    .auth-card {
        padding: 1.5rem 1rem;
    }
    .auth-title {
        font-size: 1.5rem;
    }
    .features {
        padding: 3rem 0;
    }
    .features-grid {
        gap: 1.5rem;
    }
}