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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #111320;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Auth Container */
.auth-wrapper {
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(26, 86, 255, 0.12);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header — dark navy */
.auth-header {
    background: linear-gradient(135deg, #0d1526 0%, #0f2044 50%, #0a1a3a 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.auth-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Form — supports both Login-form and form-center */
.form-center,
.Login-form {
    padding: 3rem 2.5rem;
}

form { width: 100%; }

/* Field — supports both class names */
.Employer,
.Login-field {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: #111320;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e2e6f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.25s ease;
    background: #f7f8fc;
    color: #111320;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #1a56ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 86, 255, 0.1);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a56ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: #f7f8fc;
    padding-right: 3rem;
}

/* Submit */
input[type="submit"],
button.submit,
.submit {
    width: 100%;
    padding: 1rem;
    background: #1a56ff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 1rem;
    box-shadow: 0 8px 24px rgba(26, 86, 255, 0.35);
    letter-spacing: 0.2px;
}

input[type="submit"]:hover,
button.submit:hover,
.submit:hover {
    background: #4f75ff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 86, 255, 0.45);
}

input[type="submit"]:active,
button.submit:active,
.submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(26, 86, 255, 0.3);
}

/* Result */
#result,
#verifyResult {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

#result.success,
#verifyResult.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
}

#result.error,
#verifyResult.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
}

/* Footer — Sign Up link */
.auth-footer {
    padding: 1.5rem 2.5rem;
    background: #0d1526;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.2s;
}

.auth-footer:hover {
    background: #0f2044;
}

/* anchor wrapping footer */
a:has(.auth-footer) {
    text-decoration: none;
    display: block;
}

.sign-up-h3 {
    margin-bottom: 0;
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.auth-footer:hover .sign-up-h3 {
    /* color: #00d4ff; */
}

.bottom-signup {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    font-weight: 500;
    margin-top: 8px;
}

.auth-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

/* .auth-footer a:hover {
    color: #00d4ff;
    text-decoration: none;
} */

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper { padding: 1.5rem; }
    .auth-container { border-radius: 16px; }
    .auth-header { padding: 2.5rem 1.5rem; }
    .auth-header h1 { font-size: 1.75rem; }
    .form-center, .Login-form { padding: 2.5rem 1.5rem; }
}

@media (max-width: 600px) {
    .auth-wrapper { padding: 1rem; margin-top: 70px; }
    .auth-header { padding: 2rem 1.25rem; }
    .auth-header h1 { font-size: 1.5rem; }
    .auth-header p { font-size: 0.9rem; }
    .form-center, .Login-form { padding: 2rem 1.25rem; }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select { padding: 0.75rem 1rem; font-size: 0.95rem; }
    input[type="submit"], button.submit, .submit { font-size: 0.95rem; padding: 0.9rem; }
    .auth-footer { padding: 1.25rem 1.5rem; }
}

@media (max-width: 400px) {
    .auth-wrapper { padding: 0.75rem; }
    .auth-header h1 { font-size: 1.35rem; }
    .form-center, .Login-form { padding: 1.5rem 1rem; }
    .Employer, .Login-field { margin-bottom: 1.1rem; }
}