body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, #e0e7ff 0%, #f0fdfa 100%); min-height: 100vh; margin: 0; }
.modern-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modern-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.modern-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.modern-card p.subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 400;
}
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.modern-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}
.modern-input, .modern-select {
    width: 100%;
    /* max-width: 380px; */
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.modern-input:focus, .modern-select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px #3b82f633;
}
.modern-label {
    position: absolute;
    left: 2.75rem;
    top: 0.75rem;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.2s;
    background: #fff;
    padding: 0 0.25rem;
}
.modern-input:focus + .modern-label,
.modern-input:not(:placeholder-shown) + .modern-label,
.modern-select:focus + .modern-label,
.modern-select:not([value=""]) + .modern-label {
    top: -1.1rem;
    left: 1rem;
    font-size: 0.85rem;
    color: #3b82f6;
    background: #fff;
    padding: 0 0.25rem;
}
.modern-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}
.modern-checkbox {
    accent-color: #3b82f6;
}
.modern-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.modern-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.modern-link:hover {
    text-decoration: underline;
    color: #2563eb;
}
.modern-btn {
    width: 100%;
    /* max-width: 340px; */
    padding: 0.75rem 1.75rem;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.modern-btn:hover, .modern-btn:focus {
    background: #2563eb;
    box-shadow: 0 4px 16px rgba(59,130,246,0.12);
}
.modern-btn .fa {
    font-size: 1.1em;
    vertical-align: middle;
    margin-left: 0.5em;
}
.modern-error {
    color: #dc2626;
    background: #fee2e2;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    min-height: 1.5em;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0;
    transition: opacity 0.2s;
}
.modern-error.active {
    opacity: 1;
}
.modern-center img {
    margin-bottom: 1rem;
}
/* Fix select arrow overlap with icon */
.modern-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2394a3b8" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
}
@media (max-width: 600px) {
    .modern-card { padding: 1rem; }
    .modern-card h1 { font-size: 1.5rem; }
    .modern-input, .modern-select, .modern-btn { max-width: 100%; }
    .modern-btn { padding: 0.75rem 1rem; }
}