* {
    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 */
.form-center {
    padding: 3rem 2.5rem;
}

form { width: 100%; }

/* Both Employee and Employer class supported */
.Employee,
.Employer {
    margin-bottom: 1.5rem;
}

.required {
    color: #1a56ff;
    font-size: 0.85rem;
    margin-left: 2px;
}

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 button */
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 message */
#result,
.result-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

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

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

/* Footer */
.auth-footer {
    text-align: center;
    padding: 1.5rem 2.5rem;
    background: #f0f4ff;
    border-top: 2px solid #e2e6f0;
}

.auth-footer p { color: #6b7280; font-size: 0.95rem; }

.auth-footer a {
    color: #1a56ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: #0f2044;
    text-decoration: underline;
}

/* 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 { 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 { 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 { padding: 1.5rem 1rem; }
    .Employee, .Employer { margin-bottom: 1.1rem; }
}

/* File upload */
.upload_button {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e6f0;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
    color: #111320;
    cursor: pointer;
    transition: all 0.25s ease;
}

.upload_button:hover {
    border-color: #1a56ff;
    background-color: #f7f8fc;
}

.upload_button:focus {
    outline: none;
    border-color: #1a56ff;
    box-shadow: 0 0 0 3px rgba(26, 86, 255, 0.1);
}

.upload_button::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    background-color: #e8edff;
    color: #1a56ff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.upload_button::file-selector-button:hover {
    background-color: #1a56ff;
    color: white;
}