/*
 * DocketDoor Portal - Auth Styles
 * Login, Register, Password Reset card UI
 * Version: 2.2.2
 */

/* ---------------------------------------------------------------------------
   Layout wrapper
--------------------------------------------------------------------------- */

.dd-auth-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 1rem;
    background: #F2F0EC;
}

/* ---------------------------------------------------------------------------
   Auth card
--------------------------------------------------------------------------- */

.dd-auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(30, 30, 30, 0.1);
    padding: 2rem;
}

.dd-auth-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1E1E1E;
    margin: 0 0 1.25rem;
    text-align: center;
}

/* ---------------------------------------------------------------------------
   Tabs
--------------------------------------------------------------------------- */

.dd-auth-tabs {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
    gap: 0;
}

.dd-tab {
    flex: 1;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #666;
    text-align: center;
    transition: color 0.15s, border-color 0.15s;
}

.dd-tab:hover {
    color: #1E1E1E;
}

.dd-tab.active {
    color: #1E1E1E;
    font-weight: 600;
    border-bottom-color: #A8B89C;
}

/* ---------------------------------------------------------------------------
   Tab panels
--------------------------------------------------------------------------- */

.dd-tab-panel {
    display: none;
}

.dd-tab-panel.active {
    display: block;
}

/* ---------------------------------------------------------------------------
   Form fields
--------------------------------------------------------------------------- */

.dd-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.dd-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.3rem;
}

.dd-field input[type="text"],
.dd-field input[type="email"],
.dd-field input[type="password"],
.dd-field input[type="tel"],
.dd-field select,
.dd-field textarea,
.dd-auth-card input[type="text"],
.dd-auth-card input[type="email"],
.dd-auth-card input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    color: #1E1E1E;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.dd-field input:focus,
.dd-auth-card input:focus {
    outline: none;
    border-color: #A8B89C;
    box-shadow: 0 0 0 3px rgba(168, 184, 156, 0.2);
}

.dd-field-hint {
    font-size: 0.8125rem;
    color: #888;
    margin-top: 0.25rem;
}

/* ---------------------------------------------------------------------------
   Field row (horizontal)
--------------------------------------------------------------------------- */

.dd-field-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dd-field-row .dd-field {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .dd-field-row {
        flex-direction: column;
        gap: 0;
    }

    .dd-field-row .dd-field {
        margin-bottom: 1rem;
    }
}

/* ---------------------------------------------------------------------------
   Inline field (checkbox + label on same line)
--------------------------------------------------------------------------- */

.dd-field-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dd-field-inline input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin: 0;
    accent-color: #A8B89C;
}

.dd-field-inline label {
    font-size: 0.875rem;
    color: #333;
    margin: 0;
    cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Honeypot field (hidden from humans)
--------------------------------------------------------------------------- */

.dd-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */

.dd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}

.dd-btn:disabled,
.dd-btn.loading {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.dd-btn-primary {
    background: #1E1E1E;
    color: #fff;
    border: 1px solid #1E1E1E;
}

.dd-btn-primary:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.dd-btn-secondary {
    background: transparent;
    color: #1E1E1E;
    border: 1px solid #1E1E1E;
}

.dd-btn-secondary:hover {
    background: #F2F0EC;
    color: #1E1E1E;
}

.dd-btn-full {
    width: 100%;
    box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
   Form messages
--------------------------------------------------------------------------- */

.dd-form-message {
    min-height: 1.5rem;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    padding: 0;
    line-height: 1.4;
}

.dd-form-message.error {
    color: #c0392b;
}

.dd-form-message.success {
    color: #27ae60;
}

/* ---------------------------------------------------------------------------
   Auth card footer / links
--------------------------------------------------------------------------- */

.dd-auth-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.dd-auth-links a {
    color: #1E1E1E;
    font-weight: 500;
}

.dd-auth-links a:hover {
    color: #A8B89C;
}

/* ---------------------------------------------------------------------------
   Mobile
--------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .dd-auth-card {
        max-width: 95vw;
        padding: 1.5rem 1.25rem;
    }
}
