/* ============================================
   SeyHire Authentication Pages - Common Styles
   ============================================ */

:root {
    --primary-color: #3366cc;
    --accent-color: #ff7a00;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    overflow-x: hidden;
}

/* ============================================
   Auth Container - Split Layout
   ============================================ */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Left Side - Fixed (60%)
   ============================================ */
.auth-left {
    width: 50%;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Theme variations for left side */
.auth-left.theme-blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

.auth-left.theme-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.auth-left.theme-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    opacity: 0.3;
}

.auth-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

/* ============================================
   Logo Section
   ============================================ */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    text-align: left;
}

.auth-logo.centered {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-logo-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-logo img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.auth-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.auth-logo.centered .auth-logo-text {
    align-items: center;
}

.auth-logo-text h1,
.auth-logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    color: white !important;
    line-height: 1.1;
}

.auth-logo-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ============================================
   Illustration Section
   ============================================ */
.auth-illustration {
    width: 100%;
    max-width: 450px;
    margin: 40px auto;
}

.auth-illustration img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

.auth-illustration i {
    font-size: 180px;
    opacity: 0.9;
}

.auth-left h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: white !important;
}

.auth-left p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ============================================
   Right Side - Scrollable (40%)
   ============================================ */
.auth-right {
    width: 50%;
    margin-left: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-right-header {
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-color);
}

.back-link.hover-green:hover {
    color: var(--success-color);
}

.back-link.hover-orange:hover {
    color: var(--warning-color);
}

.auth-right-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for right content */
.auth-right-content::-webkit-scrollbar {
    width: 6px;
}

.auth-right-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.auth-right-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.auth-right-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ============================================
   Auth Icon (for forgot/reset password)
   ============================================ */
.auth-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.auth-icon.icon-blue {
    background: linear-gradient(135deg, rgba(51, 102, 204, 0.1), rgba(51, 102, 204, 0.05));
}

.auth-icon.icon-orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
}

.auth-icon.icon-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.auth-icon i {
    font-size: 40px;
}

.auth-icon.icon-blue i {
    color: var(--primary-color);
}

.auth-icon.icon-orange i {
    color: var(--warning-color);
}

.auth-icon.icon-green i {
    color: var(--success-color);
}

/* ============================================
   Typography
   ============================================ */
.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-title.text-center {
    text-align: center;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.auth-subtitle.text-center {
    text-align: center;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    font-size: 20px;
    color: var(--success-color);
}

.section-title.theme-blue i {
    color: var(--primary-color);
}

.section-title.theme-green i {
    color: var(--success-color);
}

/* ============================================
   Info Box
   ============================================ */
.info-box {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-box.info-blue {
    background: rgba(51, 102, 204, 0.05);
    border: 1px solid rgba(51, 102, 204, 0.2);
}

.info-box.info-orange {
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.info-box.info-green {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.info-box-header i {
    font-size: 20px;
}

.info-box.info-blue .info-box-header i {
    color: var(--primary-color);
}

.info-box.info-orange .info-box-header i {
    color: var(--warning-color);
}

.info-box.info-green .info-box-header i {
    color: var(--success-color);
}

.info-box-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.info-box-content {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.6;
}

.info-box-content ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.info-box-content li {
    margin-bottom: 4px;
}

/* ============================================
   User Type Selector
   ============================================ */
.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.user-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--text-dark);
}

.user-type-btn i {
    font-size: 32px;
    color: var(--text-light);
    transition: color 0.3s;
}

.user-type-btn:hover {
    border-color: var(--primary-color);
    background: rgba(51, 102, 204, 0.05);
}

.user-type-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(51, 102, 204, 0.1), rgba(51, 102, 204, 0.05));
    color: var(--primary-color);
}

.user-type-btn.active i {
    color: var(--primary-color);
}

/* Green theme for user type buttons */
.user-type-selector.theme-green .user-type-btn:hover {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.user-type-selector.theme-green .user-type-btn.active {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success-color);
}

.user-type-selector.theme-green .user-type-btn.active i {
    color: var(--success-color);
}

/* ============================================
   Form Styles
   ============================================ */
.auth-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.mb-0 {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-label i {
    font-size: 16px;
    color: var(--text-light);
}

.form-label .text-danger,
.form-label .required {
    color: var(--error-color) !important;
    margin-left: 2px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

.form-control.focus-green:focus,
.form-select.focus-green:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control.focus-orange:focus,
.form-select.focus-orange:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-control.is-valid {
    border-color: var(--success-color);
    background-image: none;
}

.form-control.is-invalid {
    border-color: var(--error-color);
    background-image: none;
}

.form-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    display: block;
}

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

/* ============================================
   Password Input with Toggle
   ============================================ */
.password-input-wrapper,
.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.password-input-wrapper .form-control,
.input-group .form-control {
    padding-right: 50px;
    flex: 1;
}

.password-toggle,
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover,
.toggle-password:hover {
    color: var(--primary-color);
}

.password-toggle.hover-green:hover,
.toggle-password.hover-green:hover {
    color: var(--success-color);
}

.password-toggle:focus,
.toggle-password:focus {
    outline: none;
}

/* Input group append (for registration forms) */
.input-group-append {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.input-group-append .toggle-password,
.input-group-append .btn-outline-secondary {
    pointer-events: all;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0 16px;
    font-size: 18px;
    transition: color 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
}

.input-group-append .toggle-password:hover,
.input-group-append .btn-outline-secondary:hover {
    color: var(--success-color);
    background: transparent;
}

.input-group-append .toggle-password:focus,
.input-group-append .btn-outline-secondary:focus {
    outline: none;
    box-shadow: none;
}

/* ============================================
   Password Strength Indicator
   ============================================ */
.password-strength {
    margin-top: 12px;
}

.password-strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s;
}

.password-strength-fill.weak {
    width: 25%;
    background: var(--error-color);
}

.password-strength-fill.fair {
    width: 50%;
    background: var(--warning-color);
}

.password-strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.password-strength-fill.strong {
    width: 100%;
    background: var(--success-color);
}

.password-strength-text {
    font-size: 12px;
    color: var(--text-light);
}

/* Password Requirements */
.password-requirements {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}

.password-requirements h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.requirement i {
    font-size: 14px;
}

.requirement.valid {
    color: var(--success-color);
}

.requirement.valid i {
    color: var(--success-color);
}

/* Password Match Indicator */
.match-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-top: 8px;
}

.match-indicator.match {
    color: var(--success-color);
}

.match-indicator.no-match {
    color: var(--error-color);
}

.match-indicator i {
    font-size: 14px;
}

/* ============================================
   Username Status Indicator
   ============================================ */
.username-status {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.username-status.show {
    display: flex;
}

.username-status i {
    font-size: 16px;
}

.username-status.checking {
    display: flex;
    color: var(--text-light);
    background: #f3f4f6;
}

.username-status.available {
    display: flex;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.username-status.unavailable {
    display: flex;
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.username-status.error {
    display: flex;
    color: var(--warning-color);
    background: rgba(245, 158, 11, 0.1);
}

/* ============================================
   Location Type Info
   ============================================ */
.location-type-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
}

.location-type-info i {
    font-size: 16px;
}

.location-type-info.local i {
    color: var(--success-color);
}

.location-type-info.foreign i {
    color: var(--warning-color);
}

/* ============================================
   Form Options (Remember me, Forgot password)
   ============================================ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--success-color);
}

.custom-checkbox label {
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ============================================
   Custom Control (Checkbox for Terms)
   ============================================ */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.75rem;
    margin-bottom: 20px;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1.25rem;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
}

.custom-control-label::before {
    position: absolute;
    top: 0.15rem;
    left: -1.75rem;
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: var(--success-color);
    background-color: var(--success-color);
}

.custom-control-label::after {
    position: absolute;
    top: 0.15rem;
    left: -1.75rem;
    display: block;
    width: 18px;
    height: 18px;
    content: "";
    background: no-repeat 50% / 50% 50%;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3e%3cpath fill='%23fff' d='M8.5 2L3.5 7L1.5 5' stroke='%23fff' stroke-width='2' fill='none'/%3e%3c/svg%3e");
}

.custom-control-label a {
    color: var(--success-color);
    text-decoration: none;
    font-weight: 500;
}

.custom-control-label a:hover {
    text-decoration: underline;
}

/* ============================================
   Password Hint
   ============================================ */
.password-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--success-color);
    border-radius: 6px;
    margin-bottom: 20px;
}

.password-hint i {
    color: var(--success-color);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.password-hint small {
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary,
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    text-decoration: none;
}

.btn-primary.btn-blue,
.auth-submit-btn.btn-blue {
    background: linear-gradient(135deg, var(--primary-color), #2952a3);
}

.btn-primary.btn-blue:hover,
.auth-submit-btn.btn-blue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51, 102, 204, 0.3);
}

.btn-primary.btn-green,
.auth-submit-btn.btn-green,
.auth-submit-btn {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.btn-primary.btn-green:hover,
.auth-submit-btn.btn-green:hover:not(:disabled),
.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary.btn-orange,
.auth-submit-btn.btn-orange {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.btn-primary.btn-orange:hover,
.auth-submit-btn.btn-orange:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:disabled,
.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary i,
.auth-submit-btn i {
    font-size: 18px;
}

.btn-outline-secondary,
.btn-secondary-outline {
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
}

.btn-outline-secondary:hover,
.btn-secondary-outline:hover {
    border-color: var(--success-color);
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.btn-block {
    width: 100%;
}

/* Button row for step navigation */
.button-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.button-row .btn-outline-secondary,
.button-row .btn-secondary-outline {
    margin-top: 0;
}

.button-row .auth-submit-btn {
    margin-top: 0;
}

/* ============================================
   Dividers
   ============================================ */
.auth-divider,
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after,
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span,
.divider span {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   Links
   ============================================ */
.login-link,
.register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 32px;
}

.login-link.with-border {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.login-link a,
.register-link a {
    text-decoration: none;
    font-weight: 600;
}

.login-link a.link-blue,
.register-link a.link-blue {
    color: var(--primary-color);
}

.login-link a.link-green,
.register-link a.link-green {
    color: var(--success-color);
}

.login-link a.link-orange,
.register-link a.link-orange {
    color: var(--warning-color);
}

.login-link a:hover,
.register-link a:hover {
    text-decoration: underline;
}

.login-link a i {
    margin-right: 4px;
}

/* ============================================
   Validation & Alerts
   ============================================ */
.text-danger,
.text-danger.field-validation-error,
.field-validation-error {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left: 3px solid var(--warning-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 3px solid var(--error-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 3px solid var(--success-color);
}

.alert small {
    flex: 1;
}

/* ============================================
   Step Indicator (for Employer Registration)
   ============================================ */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    background: #f3f4f6;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.step-divider {
    width: 40px;
    height: 2px;
    background: var(--border-color);
}

.step.active {
    background: var(--success-color);
    color: white;
}

.step.completed {
    background: #d1fae5;
    color: #059669;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
}

/* ============================================
   Custom File Input
   ============================================ */
.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 0;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(1.5em + 1.5rem + 2px);
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(1.5em + 1.5rem + 2px);
    padding: 12px 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-light);
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-file-input:focus~.custom-file-label {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Logo Preview */
.logo-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.logo-preview img {
    max-height: 80px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Row Layouts (Bootstrap-like)
   ============================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -8px;
    margin-left: -8px;
}

.row > * {
    padding-right: 8px;
    padding-left: 8px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* ============================================
   Utility Classes
   ============================================ */
.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* ============================================
   Loading Spinner
   ============================================ */
.ri-spin {
    animation: ri-spin 1s linear infinite;
}

@keyframes ri-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .auth-left {
        width: 50%;
    }
    
    .auth-right {
        width: 50%;
        margin-left: 50%;
    }
}

@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        width: 100%;
        position: relative;
        min-height: 350px;
        padding: 40px 20px;
    }

    .auth-right {
        width: 100%;
        margin-left: 0;
        min-height: auto;
    }

    .auth-left h2 {
        font-size: 24px;
    }

    .auth-illustration {
        max-width: 300px;
        margin: 20px auto;
    }

    .auth-right-content {
        padding: 40px 24px;
    }

    .auth-logo h1,
    .auth-logo-text h1 {
        font-size: 28px;
    }

    .auth-logo-tagline {
        font-size: 11px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-right-header {
        padding: 16px 20px;
    }

    .auth-right-content {
        padding: 24px 20px;
    }

    .auth-title {
        font-size: 22px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }

    .user-type-btn {
        padding: 16px 12px;
    }

    .user-type-btn i {
        font-size: 24px;
    }
    
    .user-type-btn span {
        font-size: 13px;
    }

    .step {
        padding: 8px 12px;
        font-size: 12px;
    }

    .step span:not(.step-number) {
        display: none;
    }
    
    .step-divider {
        width: 20px;
    }

    .auth-logo h1,
    .auth-logo-text h1 {
        font-size: 24px;
    }

    .auth-logo-tagline {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .auth-logo img {
        width: 50px;
        height: 50px;
    }
    
    .form-control,
    .form-select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn-primary,
    .auth-submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .button-row {
        flex-direction: column;
    }
    
    .button-row .btn-outline-secondary {
        order: 2;
    }
    
    .button-row .auth-submit-btn {
        order: 1;
    }
}
/* ============================================
   Registration Flow - User Type Cards
   ============================================ */

.user-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.user-type-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), #059669);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.user-type-card:hover {
    border-color: var(--success-color);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

.user-type-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 40px;
    color: var(--success-color);
    transition: all 0.3s ease;
}

.user-type-card:hover .card-icon {
    background: linear-gradient(135deg, var(--success-color), #059669);
    transform: scale(1.1);
}

.user-type-card:hover .card-icon i {
    color: white;
}

.user-type-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.user-type-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 8px;
}

.card-features li i {
    font-size: 16px;
    color: var(--success-color);
    flex-shrink: 0;
}

.btn-select-type {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-select-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-select-type i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-select-type:hover i {
    transform: translateX(4px);
}

/* ============================================
   Form Header with Back Button
   ============================================ */

.form-header {
    margin-bottom: 32px;
}

.back-to-selection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-to-selection:hover {
    border-color: var(--success-color);
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.back-to-selection i {
    font-size: 16px;
}

/* ============================================
   Mobile Input Group (Enhanced)
   ============================================ */

.mobile-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.mobile-input-group:focus-within {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.country-code {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    background: #f9fafb;
    border-right: 2px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.country-code i {
    color: var(--success-color);
    font-size: 18px;
}

.mobile-input-group .form-control {
    border: none;
    border-radius: 0;
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.mobile-input-group .form-control:focus {
    border: none;
    box-shadow: none;
}

.mobile-input-group .form-control.readonly-input {
    background-color: #f9fafb;
    cursor: not-allowed;
}

.btn-send-otp {
    padding: 0 20px;
    background: var(--success-color);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-send-otp:hover:not(:disabled) {
    background: #059669;
}

.btn-send-otp:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-send-otp i {
    font-size: 16px;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* ============================================
   OTP Verification Section (Enhanced)
   ============================================ */

.otp-verification-section {
    margin: 24px 0;
}

.otp-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #a7f3d0;
    border-radius: 16px;
    padding: 32px 24px;
}

.otp-header {
    text-align: center;
    margin-bottom: 24px;
}

.otp-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconBounce 2s infinite;
}

.otp-icon i {
    font-size: 32px;
    color: white;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.otp-header h6 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.otp-header p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.phone-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--success-color);
    border-radius: 8px;
    color: var(--success-color);
    font-weight: 600;
}

.phone-display i {
    font-size: 16px;
}

.otp-input-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: scale(1.05);
}

.otp-digit.filled {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.otp-digit.error {
    border-color: var(--error-color);
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.otp-timer i {
    font-size: 18px;
    color: var(--success-color);
}

.otp-timer.expired {
    color: var(--error-color);
}

.otp-timer.expired i {
    color: var(--error-color);
}

.timer-count {
    font-weight: 700;
    font-size: 16px;
    color: var(--success-color);
}

.otp-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
}

.otp-status i {
    font-size: 18px;
}

.otp-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid var(--success-color);
}

.otp-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid var(--error-color);
}

.otp-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border: 1px solid var(--warning-color);
}

.otp-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.btn-verify,
.btn-resend {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-verify {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.btn-verify:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-verify:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-resend {
    background: white;
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.btn-resend:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.05);
}

.btn-resend:disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.otp-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    margin: 16px 0;
}

.otp-info i {
    font-size: 16px;
    color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
}

.otp-info small {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.5;
}

.change-number-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.change-number-link:hover {
    background: rgba(16, 185, 129, 0.05);
}

.change-number-link i {
    font-size: 16px;
}

/* ============================================
   Phone Verified Success Badge
   ============================================ */

.phone-verified-success {
    margin: 24px 0;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verified-badge-icon {
    width: 48px;
    height: 48px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.verified-badge-icon i {
    font-size: 24px;
    color: white;
}

.verified-badge-content {
    flex: 1;
}

.verified-badge-content strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #065f46;
    margin-bottom: 4px;
}

.verified-badge-content strong i {
    font-size: 18px;
}

.verified-badge-content p {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

.verified-badge-check {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verified-badge-check i {
    font-size: 20px;
    color: var(--success-color);
}

/* ============================================
   Testing Mode Banner
   ============================================ */

.testing-mode-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    margin-bottom: 24px;
}

.testing-mode-banner i {
    font-size: 24px;
    color: #d97706;
    flex-shrink: 0;
}

.testing-mode-banner-content {
    flex: 1;
}

.testing-mode-banner-content strong {
    display: block;
    color: #92400e;
    font-size: 14px;
    margin-bottom: 4px;
}

.testing-mode-banner-content small {
    display: block;
    color: #78350f;
    font-size: 12px;
}

.testing-mode-banner code {
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #dc2626;
    font-weight: 600;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
    .user-type-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .user-type-card {
        padding: 24px 20px;
    }

    .card-icon {
        width: 64px;
        height: 64px;
    }

    .card-icon i {
        font-size: 32px;
    }

    .user-type-card h3 {
        font-size: 20px;
    }

    .mobile-input-group {
        flex-wrap: wrap;
    }

    .btn-send-otp {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .otp-input-wrapper {
        gap: 8px;
    }

    .otp-digit {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }

    .otp-actions {
        flex-direction: column;
    }
}

#appRecaptchaContainer {
    width: 0;
    height: 0;
    overflow: hidden;
}

.recaptcha-legal-notice-minimal {
    text-align: center;
    padding: 8px 0;
    margin: 12px 0;
}

.recaptcha-legal-notice-minimal small {
    font-size: 0.75rem;
    color: #999;
}

.recaptcha-legal-notice-minimal a {
    color: #999;
    text-decoration: none;
}

.recaptcha-legal-notice-minimal a:hover {
    color: #666;
    text-decoration: underline;
}