/* HireFlow — Auth Pages Stylesheet */
/* Domain: HireFlow.dukovo.com */

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

:root {
    --brand-primary: #6c63ff;
    --brand-dark:    #1a1a2e;
    --brand-accent:  #e63946;
    --brand-light:   #f0efff;

    --text-primary:   #1a1a2e;
    --text-secondary: #64748b;
    --text-muted:     #94a3b8;

    --border:        #e2e8f0;
    --border-focus:  #6c63ff;

    --bg-page:   #f4f3ff;
    --bg-card:   #ffffff;
    --bg-input:  #f8fafc;

    --success-bg:   #f0fdf4;
    --success-text: #166534;
    --success-border:#bbf7d0;

    --error-bg:   #fff1f2;
    --error-text: #991b1b;
    --error-border:#fecaca;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-card: 0 4px 24px rgba(108, 99, 255, 0.08), 0 1px 4px rgba(0,0,0,0.04);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    line-height: 1.6;
}

/* ===================== LAYOUT ===================== */
.auth-container {
    width: 100%;
    max-width: 440px;
}

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

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.brand-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===================== CARD ===================== */
.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 36px 32px;
    border: 1px solid rgba(108, 99, 255, 0.06);
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===================== ALERTS ===================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

/* ===================== TABS ===================== */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.auth-tab.active {
    background: #fff;
    color: var(--brand-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 18px; }

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.label-link {
    font-size: 12px;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}
.label-link:hover { text-decoration: underline; }

.form-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
    background: #fff;
}

.form-input::placeholder { color: var(--text-muted); }

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Password wrapper */
.input-password-wrapper {
    position: relative;
}
.input-password-wrapper .form-input { padding-right: 44px; }
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    padding: 4px;
}
.toggle-password:hover { opacity: 1; }

/* Strength bar */
.password-strength {
    height: 3px;
    border-radius: 2px;
    background: #e2e8f0;
    margin-top: 6px;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--brand-primary);
    flex-shrink: 0;
    cursor: pointer;
}
.form-checkbox a { color: var(--brand-primary); text-decoration: none; }
.form-checkbox a:hover { text-decoration: underline; }

/* ===================== BUTTONS ===================== */
.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--brand-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.1px;
}
.btn-primary:hover { background: #5a52d5; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-secondary {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-secondary);
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ===================== SOCIAL AUTH ===================== */
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.social-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-primary);
    transition: all 0.2s;
    font-family: inherit;
}
.btn-social:hover { background: #f8fafc; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* ===================== ROLE SELECTOR ===================== */
.role-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.role-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-align: center;
}

.role-option input[type="radio"] { display: none; }

.role-option .role-icon { font-size: 24px; }

.role-option.active {
    border-color: var(--brand-primary);
    background: var(--brand-light);
    color: var(--brand-primary);
}

/* ===================== PHONE INPUT ===================== */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-input-wrapper:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
    background: #fff;
}
.phone-prefix {
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #f1f5f9;
    border-right: 1.5px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
}
.phone-field {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.phone-field:focus { outline: none; }

/* ===================== OTP INPUTS ===================== */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.otp-digit:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
    background: #fff;
}

.otp-sent-msg {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 16px;
    padding: 10px;
    background: var(--brand-light);
    border-radius: var(--radius-sm);
}

.otp-timer {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}

/* ===================== FOOTER ===================== */
.auth-footer-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.auth-footer-text a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer-text a:hover { text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; }
    .otp-digit { width: 40px; height: 48px; font-size: 18px; }
}
