@font-face {
    font-family: 'Unica77 LL';
    src: url('../Unica77 LL.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* LIGHT MODE DEFAULTS */
:root {
    --bg-color: #f5f5f7;
    --bg-gradient: radial-gradient(circle at top, #ffffff 0%, #e5e5ea 100%);
    --card-bg: rgba(255, 255, 255, 0.85); /* Light glassmorphism */
    --card-border: rgba(0, 0, 0, 0.08);
    --text-color: #1d1d1f;
    --text-muted: #86868b;
    --accent: #0071e3; /* Classic Apple Blue */
    --input-bg: rgba(0, 0, 0, 0.04);
    --input-border: rgba(0, 0, 0, 0.1);
    --success: #34C759;
    --danger: #FF3B30;
    --shadow-color: rgba(0,0,0,0.06);
    --placeholder-color: rgba(0, 0, 0, 0.4);
    --iti-bg: #ffffff;
    --iti-text: #1d1d1f;
    --iti-border: #d1d1d6;
}

/* DARK MODE OVERRIDES */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #2c2c2e; 
        --bg-gradient: radial-gradient(circle at top, #656567 0%, #1c1c1e 90%); /* Space gray gradient */
        --card-bg: rgba(44, 44, 46, 0.65); 
        --card-border: rgba(255, 255, 255, 0.1);
        --text-color: #f5f5f7;
        --text-muted: #86868b;
        --accent: #FFD60A; /* Premium gold accent */
        --input-bg: rgba(255, 255, 255, 0.06);
        --input-border: rgba(255, 255, 255, 0.1);
        --shadow-color: rgba(0,0,0,0.4);
        --placeholder-color: rgba(255, 255, 255, 0.3);
        --iti-bg: #2c2c2e;
        --iti-text: #ffffff;
        --iti-border: #444444;
    }
}

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

body {
    font-family: 'Unica77 LL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding: 40px 20px;
    padding-bottom: 80px; /* Room for footer */
}

.container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
}

.logo-area {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}
.logo-area img {
    height: 115px;
    object-fit: contain;
    filter: var(--logo-filter);
}

h1, h3 {
    font-weight: 500;
    text-align: center;
}

h2 {
    text-align: center;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 20px;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input-wrap label {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 4px;
}

input, select, textarea {
    width: 100%;
    border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    padding: 16px;
    appearance: none;
    -webkit-appearance: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
}

input::placeholder, textarea::placeholder {
    color: var(--placeholder-color);
}

.iti { width: 100%; }
.iti__flag-container { border-radius: 12px 0 0 12px; }
.iti__country-list { background-color: var(--iti-bg); color: var(--iti-text); border: 1px solid var(--iti-border); border-radius:12px; }
.iti__divider { border-bottom: 1px solid var(--iti-border); }

.btn {
    margin-top: 10px;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    text-align: center;
    text-decoration: none;
}
.btn:hover {
    opacity: 0.9;
}
.btn:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.3);
}

.alert {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert.error {
    background: rgba(255, 59, 48, 0.15);
    color: #ff453a;
    border: 1px solid rgba(255, 59, 48, 0.3);
}
.alert.success {
    background: rgba(52, 199, 89, 0.15);
    color: #32d74b;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.links { text-align: center; margin-top: 20px; }
.links a { color: var(--text-muted); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.links a:hover { color: var(--text-color); text-decoration: underline;}

::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; cursor:pointer;}

/* Logos & specific overrides */
.powered-by-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    opacity: 0.7;
    z-index: 0;
}
