:root {
    --primary: #1E40AF;
    --primary-hover: #1E3A8A;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --input-bg: #F1F5F9;
    --error-bg: #FEF2F2;
    --error-text: #DC2626;
    --radius-lg: 20px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02),
                0 10px 15px -3px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
}

.header {
    text-align: center;
    margin-bottom: 28px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    background: #EFF6FF;
    color: var(--primary);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.error-msg {
    background: var(--error-bg);
    color: var(--error-text);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #FEE2E2;
}

.input-group {
    position: relative;
    margin-bottom: 14px;
}

.input-group i:not(.toggle-password) {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.input-control {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.input-control:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.06);
}

#suggestions {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 4px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

#suggestions div {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f8fafc;
}

#suggestions div:last-child {
    border-bottom: none;
}

#suggestions div:hover {
    background: var(--input-bg);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    height: 52px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: var(--primary-hover);
}

.footer-text {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}