/* --- style.css --- */

/* 1. Theme Variables (Light Mode Default) */
:root {
    --bg-color: #f2f2f7; /* iOS System Gray 6 */
    --text-color: #1c1c1e;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --input-bg: rgba(255, 255, 255, 0.8);
    --accent: #007aff; /* iOS Blue */
}

/* 2. Auto Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-color: #f2f2f7;
        --glass-bg: rgba(28, 28, 30, 0.65);
        --glass-border: rgba(255, 255, 255, 0.1);
        --input-bg: rgba(44, 44, 46, 0.8);
    }
}

/* 3. Base Setup */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Centers the card on the screen */
    transition: background 0.3s, color 0.3s;
}

/* 4. The Glass Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px; /* Perfect for mobile and web */
}

/* 5. Form Elements */
input, select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.3s;
}

input:focus, select:focus {
    border-color: var(--accent);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.lang-toggle {
    text-align: center;
    margin-bottom: 15px;
}

.lang-toggle a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}