/* Authentication Pages Styling - DigiForBiz Theme */

:root {
    --yellow: #D4A017;
    --black: #000000;
    --charcoal: #1A1A1A;
    --beige: #F4E2B8;
    --gold: #E3B23C;
}

body {
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card {
    background: #1A1A1A;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(212, 160, 23, 0.2), 0 0 0 1px rgba(212, 160, 23, 0.1);
    padding: 40px;
    animation: fadeInUp 0.5s ease-out;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.auth-logo {
    max-width: 150px;
    height: auto;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #F4E2B8;
    margin-bottom: 8px;
}

.auth-header p {
    color: #C9C9C9;
    font-size: 14px;
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #F4E2B8;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(212, 160, 23, 0.3);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #FFFFFF;
    caret-color: #F4E2B8;
    -webkit-text-fill-color: #FFFFFF;
}

.form-control:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
    background: #111111;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}

.form-control:active,
.form-control:hover {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}

/* Ensure all auth field types keep bright text */
input.form-control,
select.form-control,
textarea.form-control {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Keep option list readable in dark fields */
select.form-control option {
    color: #111111;
    background: #FFFFFF;
}

.form-control::placeholder {
    color: #666;
}

/* Prevent browser autofill from making fields unreadable */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #000 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #C9C9C9;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #F4E2B8;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--yellow);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
    color: var(--gold);
}

.form-group .forgot-password {
    float: right;
    font-size: 14px;
    color: var(--yellow);
    text-decoration: none;
}

.form-group .forgot-password:hover {
    text-decoration: underline;
    color: var(--gold);
}

.btn-primary {
    background: linear-gradient(135deg, var(--yellow) 0%, #ff9800 100%);
    color: #000000;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 160, 23, 0.4);
    background: linear-gradient(135deg, #ff9800 0%, var(--yellow) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 160, 23, 0.2);
}

.auth-footer p {
    color: #C9C9C9;
    font-size: 14px;
    margin: 0;
}

.auth-footer a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: var(--gold);
}

/* Auth page action buttons */
.auth-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #111827;
    background: linear-gradient(135deg, var(--yellow) 0%, #ff9800 100%);
    box-shadow: 0 10px 25px rgba(212, 160, 23, 0.25);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(212, 160, 23, 0.35);
}

.auth-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-secondary {
    background: #fff;
    color: #111827;
    border: 2px solid #e5e7eb;
    box-shadow: none;
}

.auth-message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.45;
}

.auth-message.error {
    background: #1f2937;
    color: #f3f4f6;
    border: 1px solid #374151;
}

/* User Menu Styling */
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }
}

