/**
 * Enhanced Registration Styles
 * Modern, polished UI for Healthion Registration
 */

/* ========== Password Creation Section ========== */
.password-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #06b6d4;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.password-section-title {
    color: #06b6d4;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-input-group {
    position: relative;
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    padding: 16px 50px 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.password-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.password-input.is-valid {
    border-color: #10b981;
    background: #ecfdf5;
}

.password-input.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.password-toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.password-toggle-btn:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

.field-feedback {
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
    display: block;
}

.field-feedback.text-success {
    color: #10b981;
}

.field-feedback.text-danger {
    color: #ef4444;
}

/* Password Requirements */
.password-requirements {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.password-requirements-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.password-requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.password-requirement i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.password-requirement.unmet i {
    color: #d1d5db;
}

.password-requirement.met {
    color: #10b981;
    font-weight: 600;
}

.password-requirement.met i {
    color: #10b981;
}

/* ========== Document Upload & Preview ========== */
.document-upload-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.document-upload-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-upload-area {
    border: 3px dashed #e5e7eb;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: #06b6d4;
    background: #f0fdff;
}

.file-upload-area.has-file {
    border-color: #10b981;
    background: #ecfdf5;
}

.file-upload-icon {
    font-size: 48px;
    color: #06b6d4;
    margin-bottom: 15px;
}

.file-upload-text {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 8px;
}

.file-upload-text strong {
    color: #06b6d4;
    font-weight: 600;
}

.file-upload-hint {
    font-size: 13px;
    color: #9ca3af;
}

.file-name-display {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    margin-top: 10px;
}

/* File Preview */
.file-preview {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.preview-image-container {
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.preview-pdf-container {
    text-align: center;
    padding: 30px;
}

.preview-pdf-container i {
    color: #ef4444;
}

.preview-pdf-container p {
    margin: 15px 0;
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}

.btn-preview {
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

/* ========== Review Section ========== */
.review-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.review-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

.review-value.editable {
    color: #06b6d4;
    cursor: pointer;
    text-decoration: underline;
}

.review-value.editable:hover {
    color: #0891b2;
}

/* ========== Progress Steps ========== */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s ease;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

.step-item.active .step-label {
    color: #06b6d4;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #10b981;
    font-weight: 600;
}

.step-line {
    width: 100px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 15px;
    border-radius: 2px;
}

.step-line.active,
.step-line.completed {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .password-section,
    .document-upload-section,
    .review-section {
        padding: 20px;
    }

    .password-input {
        font-size: 16px;
        padding: 14px 45px 14px 16px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-line {
        width: 60px;
    }

    .review-item {
        flex-direction: column;
        gap: 5px;
    }

    .review-value {
        text-align: left;
    }
}
