/* Modern Authentication Styles - Slate Blue Theme */

:root {
    --auth-primary: #273647;
    --auth-primary-dark: #1e2a38;
    --auth-primary-light: #e1e8ed;
    --auth-bg: #f5f7f9;
    --auth-card-bg: #ffffff;
    --auth-text: #1f2937;
    --auth-text-light: #6b7280;
    --auth-border: #e5e7eb;
    --auth-input-bg: #f9fafb;
}

/* Reset and Base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.auth-page {
    background: var(--auth-bg) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.auth-card {
    background: var(--auth-card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid rgba(39, 54, 71, 0.1);
}

.auth-register .auth-card {
    padding: 55px 80px;
}

.auth-card-wide {
    max-width: 780px;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 25px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--auth-text-light);
    margin: 0;
}

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

.auth-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.auth-form .input-wrapper {
    position: relative;
}

.auth-form .input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--auth-text-light);
}

.auth-form .form-control {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 16px;
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    background: var(--auth-input-bg);
    color: var(--auth-text);
    transition: all 0.2s ease;
    min-height: 54px;
}

/* Registration form inputs without icons */
.auth-register .auth-form .form-control {
    padding-left: 16px;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.auth-form .form-control::placeholder {
    color: #9ca3af;
}

/* Select styling */
.auth-form select.form-control {
    padding-left: 16px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 22px;
}

/* Toggle password */
.auth-form .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--auth-text-light);
}

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

/* Link row */
.auth-form .link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.auth-form .link-row a {
    font-size: 13px;
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-form .link-row a:hover {
    color: var(--auth-primary-dark);
}

/* Submit button */
.auth-form .btn-auth {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--auth-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.auth-form .btn-auth:hover {
    background: var(--auth-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--auth-border);
}

.auth-footer p {
    font-size: 14px;
    color: var(--auth-text-light);
    margin: 0;
}

.auth-footer a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--auth-primary-dark);
}

/* ==========================================
   MULTI-STEP REGISTRATION FORM
   ========================================== */

.auth-container.auth-register {
    max-width: 800px;
}

/* Progress Steps */
.auth-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
    padding: 0 20px;
}

.auth-step {
    display: flex;
    align-items: center;
    position: relative;
}

.auth-step:not(:last-child)::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--auth-border);
    margin: 0 8px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.auth-step.completed:not(:last-child)::after {
    background: var(--auth-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--auth-border);
    color: var(--auth-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-step.active .step-number {
    background: var(--auth-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.auth-step.completed .step-number {
    background: var(--auth-primary);
    color: #fff;
}

.auth-step.completed .step-number svg {
    width: 18px;
    height: 18px;
}

/* Fieldsets */
.auth-fieldset {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-fieldset.active {
    display: block;
}

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

/* Step Title */
.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 10px;
    text-align: center;
}

.step-subtitle {
    font-size: 14px;
    color: var(--auth-text-light);
    margin-bottom: 30px;
    text-align: center;
}

/* Row layouts */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 22px;
}

/* Registration specific spacing */
.auth-register .auth-form .form-group {
    margin-bottom: 22px;
}

/* Navigation buttons */
.auth-nav-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn-auth-prev {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-text);
    background: var(--auth-input-bg);
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth-prev:hover {
    background: var(--auth-border);
}

.btn-auth-next {
    flex: 2;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--auth-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth-next:hover {
    background: var(--auth-primary-dark);
}

/* File upload */
.file-upload-wrapper {
    border: 2px dashed var(--auth-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 15px;
}

.file-upload-wrapper:hover {
    border-color: var(--auth-primary);
    background: rgba(16, 185, 129, 0.02);
}

.file-upload-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--auth-text-light);
    margin-bottom: 10px;
}

.file-upload-wrapper p {
    font-size: 14px;
    color: var(--auth-text-light);
    margin: 0;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

/* Info boxes */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--auth-primary-light);
    border-radius: 10px;
    margin-bottom: 15px;
}

.info-box svg {
    width: 24px;
    height: 24px;
    color: var(--auth-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text);
    margin: 0 0 4px 0;
}

.info-box-content p {
    font-size: 13px;
    color: var(--auth-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Success state */
.auth-success {
    text-align: center;
    padding: 30px 0;
}

.auth-success svg {
    width: 70px;
    height: 70px;
    color: var(--auth-primary);
    margin-bottom: 20px;
}

.auth-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 10px;
}

.auth-success p {
    font-size: 14px;
    color: var(--auth-text-light);
    margin-bottom: 25px;
}

/* Error state */
.field-error {
    border-color: #ef4444 !important;
}

.error-message {
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-register .auth-card {
        padding: 40px 30px;
    }
    
    .auth-container.auth-register {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 30px 25px;
    }
    
    .auth-register .auth-card {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-steps {
        padding: 0;
    }
    
    .auth-step:not(:last-child)::after {
        width: 30px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .auth-nav-buttons {
        flex-direction: column-reverse;
    }
    
    .btn-auth-prev,
    .btn-auth-next {
        flex: 1;
    }
}

/* Override old form-2.css conflicts */
body.auth-page .form-container,
body.auth-page .form-form,
body.auth-page .form-form-wrap {
    all: unset;
}
