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

.auth-body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    min-height: 100vh;
    color: #2D3748;
    line-height: 1.6;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

/* Header */
.auth-header {
    margin-bottom: 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: #F7FAFC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #2D3748;
}

/* Main Content */
.auth-main {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
}

/* Messages */
.messages {
    margin-bottom: 24px;
}

.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}

.message-error {
    background: #FED7D7;
    color: #C53030;
    border: 1px solid #FC8181;
}

.message-success {
    background: #C6F6D5;
    color: #2F855A;
    border: 1px solid #68D391;
}

.message-info {
    background: #BEE3F8;
    color: #2B6CB0;
    border: 1px solid #90CDF4;
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 8px;
    text-align: center;
}

p {
    color: #718096;
    margin-bottom: 24px;
    text-align: center;
}

p a {
    color: #FF8C42;
    text-decoration: none;
    font-weight: 600;
}

p a:hover {
    color: #E6742A;
    text-decoration: underline;
}

/* Forms */
form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 6px;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    transition: all 0.2s;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #FF8C42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

/* Date input styling */
input[type="date"] {
    position: relative;
    cursor: pointer;
    color: #2D3748;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    width: 20px;
    height: 20px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text {
    color: #718096;
    padding: 0 4px;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: #2D3748;
    padding: 0 2px;
}

/* When date input is empty, show placeholder-like color */
input[type="date"]:not(:focus):invalid {
    color: #718096;
    border-color: #E2E8F0;
}

/* Help text for form fields */
.form-text.text-muted {
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
    display: block;
    line-height: 1.4;
}

/* Form sections */
.form-section-divider {
    border-top: 2px solid #E2E8F0;
    margin: 32px 0 24px 0;
    padding-top: 24px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 16px;
    display: block;
}

/* Select dropdown styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Buttons */
button[type="submit"],
.btn-primary {
    width: 100%;
    background: #FF8C42;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background: #E6742A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

button[type="submit"]:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Secondary buttons */
.btn-secondary {
    width: 100%;
    background: transparent;
    color: #FF8C42;
    border: 2px solid #FF8C42;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: #FF8C42;
    color: white;
    transform: translateY(-1px);
}

/* Checkbox */
input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 16px 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    color: #718096;
}

/* Terms acceptance checkbox */
.terms-checkbox-container {
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.terms-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.terms-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #FF8C42;
    flex-shrink: 0;
}

.terms-checkbox-wrapper label {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    color: #4A5568;
    line-height: 1.6;
    cursor: pointer;
}

.terms-checkbox-wrapper label a {
    color: #FF8C42;
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox-wrapper label a:hover {
    color: #E6742A;
    text-decoration: underline;
}

/* Divider */
.divider {
    margin: 32px 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E2E8F0;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: #718096;
    font-size: 14px;
}

/* Error messages */
.errorlist {
    color: #C53030;
    font-size: 14px;
    margin-top: 4px;
    list-style: none;
}

.errorlist li {
    margin-bottom: 4px;
}

/* Alert boxes */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-danger {
    background: #FED7D7;
    color: #C53030;
    border: 1px solid #FC8181;
}

.alert-danger .errorlist {
    margin: 0;
}

.alert-danger .errorlist li {
    margin: 0;
}

/* Footer */
.auth-footer {
    margin-top: 48px;
    text-align: center;
}

.auth-footer p {
    color: #A0ADB8;
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    h1 {
        font-size: 24px;
    }
}