/* login.css */

/* Import the same font as your main page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563EB;       /* Royal Blue */
    --primary-hover: #1d4ed8;
    --bg-gradient: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.form-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Subtle animation on load */
.form-container {
    animation: slideUp 0.5s ease-out;
}

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

h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.8rem;
}

p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* GOOGLE BUTTON */
.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--border);
    gap: 12px;
    color: var(--text-main);
    background: #fff;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.google-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.google-btn svg { height: 20px; }

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.divider span { padding: 0 10px; }

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

/* INPUTS */
.input-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px; /* Modern rounded corners */
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

/* The "Glow" Effect */
.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* BUTTON */
.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0.5rem;
}

.submit-btn:hover { background-color: var(--primary-hover); }
.submit-btn:active { transform: scale(0.98); }

/* FOOTER LINK */
.footer-text { margin-top: 1.5rem; font-size: 0.9rem; }
.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.footer-text a:hover { text-decoration: underline; }

/* Example CSS for the modal */
#profile-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* When JS adds this class, it becomes visible */
#profile-modal.active {
    display: flex !important;
}