/*
 * GeoSense Auth & Shared Component Styling (Stitch UI Standard)
 * -------------------------------------------------------------
 * Clean, modern layout with Plus Jakarta Sans & Inter typography,
 * soft drop shadows, subtle borders (rgba(15, 23, 42, 0.08)),
 * and smooth interactive micro-animations.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #144e99;
    --primary-light: #1d5cb8;
    --accent-color: #3b82f6;
    --white: #ffffff;
    --card-bg: #ffffff;
    --bg-color: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-subtle: rgba(15, 23, 42, 0.08);
    --error-color: #ef4444;
    --success-color: #10b981;
    --border-radius: 14px;
    --border-radius-sm: 10px;
    --border-radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Watermark Background */
.watermark-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('logo.jpeg');
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
.app-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(20, 78, 153, 0.15);
}

.header-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.profile-icon {
    position: absolute;
    right: 20px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}
.profile-icon:hover {
    transform: scale(1.08);
}

/* Container & Layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 20px;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

/* Form Styles with Stitch Standard */
form {
    background: var(--white);
    padding: 30px 24px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group label i {
    margin-right: 6px;
    color: var(--primary-blue);
}

.input-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    background: #f8fafc;
    transition: var(--transition);
    outline: none;
    color: var(--text-dark);
}

.input-group input:focus {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(20, 78, 153, 0.12);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    user-select: none;
    transition: color 0.15s;
}
.password-toggle:hover {
    color: var(--primary-blue);
}

/* Buttons (Stitch UI: Hover translateY(-2px), Active scale(0.98)) */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 18px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(20, 78, 153, 0.22);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(20, 78, 153, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline:active {
    transform: scale(0.98);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.divider:not(:empty)::before { margin-right: 14px; }
.divider:not(:empty)::after { margin-left: 14px; }

/* Footer text */
.footer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-text a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
}
.footer-text a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

main > * {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
