*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: #374151;
}

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

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #C89B3C 0%, #A0762A 100%);
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 14px;
    box-shadow: 0 8px 16px rgba(200, 155, 60, 0.25);
}

.auth-logo-img {
    height: 64px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    margin-bottom: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-brand h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
}

.auth-brand p {
    margin: 0;
    color: #6B7280;
    font-size: 14px;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

.auth-alert.warning {
    background-color: #FFFBEB;
    color: #B45309;
    border-color: #FDE68A;
    flex-wrap: wrap;
}

.seeder-link {
    color: #92400E;
    font-weight: 700;
    text-decoration: underline;
    display: inline-block;
    margin-top: 4px;
}

.seeder-link:hover {
    color: #B45309;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #9CA3AF;
    font-size: 14px;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 42px 12px 40px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    color: #1F2937;
    background-color: #ffffff;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.input-with-icon input:focus {
    border-color: #C89B3C;
    box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.15);
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #374151;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #C89B3C 0%, #B2872E 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(200, 155, 60, 0.25);
}

.auth-submit:hover {
    background: linear-gradient(135deg, #B2872E 0%, #987224 100%);
}

.auth-divider {
    text-align: center;
    margin: 22px 0 18px;
    position: relative;
    color: #9CA3AF;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #E5E7EB;
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-link.secondary {
    background-color: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.btn-link.secondary:hover {
    background-color: #E5E7EB;
    color: #1F2937;
}

.btn-link.text {
    background: none;
    color: #6B7280;
}

.btn-link.text:hover {
    color: #C89B3C;
}
