/**
 * DRTPC Experts Directory — Authentication Styles
 * Login, Lost Password, and Registration forms
 * Uses design tokens from directory.css
 *
 * @package DRTPC_Experts_Directory
 */

/* ===== Auth Wrapper ===== */
.drtpc-auth-wrapper {
    max-width: 440px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--drtpc-font-family);
    color: var(--drtpc-text-dark);
    -webkit-font-smoothing: antialiased;
}

/* ===== Auth Form Card ===== */
.drtpc-auth-form {
    background: var(--drtpc-bg-white);
    border: 1px solid var(--drtpc-border);
    border-radius: var(--drtpc-card-radius);
    padding: 40px 36px;
    box-shadow: var(--drtpc-shadow-md);
    position: relative;
    overflow: hidden;
}

/* Decorative top border gradient */
.drtpc-auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--drtpc-primary), #0A3D8F, var(--drtpc-accent));
}

/* ===== Auth Title ===== */
.drtpc-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--drtpc-text-dark);
    margin: 0 0 8px;
    text-align: center;
}

.drtpc-auth-description {
    font-size: 14px;
    color: var(--drtpc-text-light);
    text-align: center;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ===== Form Groups ===== */
.drtpc-auth-form .drtpc-form-group {
    margin-bottom: 20px;
}

.drtpc-auth-form .drtpc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--drtpc-text-dark);
    margin-bottom: 6px;
}

/* ===== Inputs ===== */
.drtpc-auth-form .drtpc-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--drtpc-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--drtpc-font-family);
    color: var(--drtpc-text-dark);
    background: var(--drtpc-bg-light);
    transition: all var(--drtpc-transition);
    box-sizing: border-box;
}

.drtpc-auth-form .drtpc-input::placeholder {
    color: var(--drtpc-text-light);
}

.drtpc-auth-form .drtpc-input:focus {
    border-color: var(--drtpc-primary);
    outline: none;
    background: var(--drtpc-bg-white);
    box-shadow: 0 0 0 4px rgba(var(--drtpc-primary-rgb), 0.08);
}

/* ===== Auth Buttons ===== */
.drtpc-auth-form .drtpc-btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--drtpc-primary);
    color: var(--drtpc-text-on-primary);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--drtpc-font-family);
    cursor: pointer;
    transition: all var(--drtpc-transition);
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.drtpc-auth-form .drtpc-btn-primary:hover {
    background: var(--drtpc-primary-hover);
    box-shadow: var(--drtpc-shadow-md);
    transform: translateY(-1px);
}

.drtpc-auth-form .drtpc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Auth Footer ===== */
.drtpc-auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--drtpc-border-light);
}

.drtpc-auth-link {
    color: var(--drtpc-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--drtpc-transition);
}

.drtpc-auth-link:hover {
    color: var(--drtpc-primary-hover);
    text-decoration: underline;
}

/* ===== Register Link ===== */
.drtpc-auth-register-link {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--drtpc-border-light);
}

.drtpc-auth-register-link p {
    font-size: 14px;
    color: var(--drtpc-text-medium);
    margin: 0;
}

.drtpc-auth-register-link .drtpc-auth-link {
    margin-left: 4px;
}

/* ===== Auth Message ===== */
.drtpc-auth-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: drtpc-fadeInUp 0.3s ease-out;
}

.drtpc-auth-message.drtpc-message-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.drtpc-auth-message.drtpc-message-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* ===== Already Logged In ===== */
.drtpc-already-logged-in {
    max-width: 440px;
    margin: 40px auto;
    background: var(--drtpc-bg-white);
    border: 1px solid var(--drtpc-border);
    border-radius: var(--drtpc-card-radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--drtpc-shadow-sm);
    font-family: var(--drtpc-font-family);
}

.drtpc-already-logged-in p {
    font-size: 15px;
    color: var(--drtpc-text-medium);
    margin: 0 0 16px;
}

.drtpc-already-logged-in a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--drtpc-primary);
    color: var(--drtpc-text-on-primary);
    text-decoration: none;
    border-radius: var(--drtpc-btn-radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--drtpc-transition);
}

.drtpc-already-logged-in a:hover {
    background: var(--drtpc-primary-hover);
    box-shadow: var(--drtpc-shadow-md);
}

/* ===== Animation ===== */
@keyframes drtpc-fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.drtpc-auth-form {
    animation: drtpc-fadeInUp 0.4s ease-out;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .drtpc-auth-wrapper {
        margin: 20px auto;
    }

    .drtpc-auth-form {
        padding: 28px 24px;
    }

    .drtpc-auth-title {
        font-size: 20px;
    }
}

/* ===== RTL ===== */
[dir="rtl"] .drtpc-auth-wrapper {
    font-family: 'Cairo', 'Euclid Circular B', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="rtl"] .drtpc-auth-register-link .drtpc-auth-link {
    margin-left: 0;
    margin-right: 4px;
}