/* Register Page - Consistent with dentcare-service design */

/* Page Title */
.register-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* Login Container (Shared with login.css) - Enhanced Design */
.login-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e1e4ee;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

/* Login Title */
.login-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #1f2a37;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Form Group */
.login-form-group {
    margin-bottom: 24px;
}

/* Label */
.login-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #475467;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Input Group */
.login-input-group {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.login-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Input */
.login-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e1e4ee;
    border-right: none;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #1d2939;
    background-color: #f8fafc;
}

.login-input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: none;
}

.login-input::placeholder {
    color: #9ca3af;
}

/* Input Icon */
.login-input-icon {
    background: linear-gradient(135deg, #f1f5f9 0%, #e9ecef 100%);
    border: 1px solid #e1e4ee;
    border-left: none;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    font-weight: 600;
}

.login-input-icon i {
    font-size: 1.1rem;
}

/* Login Button - Enhanced Style */
.login-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-btn i {
    font-size: 1.1em;
}

/* reCAPTCHA */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 18px 0;
}

/* Required Field Indicator */
.required-mark {
    color: #dc3545;
    margin-left: 4px;
    font-weight: 700;
}

.required-text {
    font-size: 0.875rem;
    margin-bottom: 20px;
    padding: 10px 14px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-weight: 500;
    text-align: left;
}

/* ===== E-Shop Toggle Section ===== */
.eshop-toggle-container {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 10px;
    border: 1px solid #b3d9ff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    transition: all 0.3s ease;
}

.eshop-toggle-container:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
}

/* Toggle Wrapper */
.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.toggle-label {
    font-weight: 600;
    color: #1f2a37;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label i {
    color: #667eea;
    font-size: 1.2rem;
}

/* Toggle Switch - Enhanced Design */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    transition: 0.4s;
    border-radius: 32px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.toggle-slider:active:before {
    width: 28px;
}

/* Toggle Description */
.toggle-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.5;
}

/* ===== File Upload Section ===== */
.file-upload-container {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #b3d9ff;
    display: none;
    animation: fadeIn 0.3s ease;
}

.file-upload-container.active {
    display: block;
}

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

/* Additional Info Inputs */
.additional-info {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.additional-info input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e4ee;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1d2939;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.additional-info input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.additional-info input::placeholder {
    color: #9ca3af;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #b3d9ff;
    border-radius: 10px;
    padding: 32px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

/* Upload Icon */
.upload-icon {
    font-size: 52px;
    color: #667eea;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
    color: #764ba2;
}

/* Upload Text */
.upload-text {
    font-size: 1rem;
    color: #1f2a37;
    margin-bottom: 6px;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.875rem;
    color: #64748b;
}

/* File Input (Hidden) */
.file-input {
    display: none;
}

/* File List */
.file-list {
    margin-top: 16px;
}

/* ===== Referral Code Section ===== */
.referral-code-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #b3d9ff;
}

.referral-label {
    display: block;
    font-weight: 600;
    color: #1f2a37;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.referral-label i {
    color: #667eea;
    margin-right: 6px;
}

.referral-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.referral-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e1e4ee;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1d2939;
    background-color: #ffffff;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.referral-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.referral-input::placeholder {
    color: #9ca3af;
    text-transform: none;
}

.referral-validate-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.referral-validate-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.referral-validate-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.referral-validate-btn i {
    font-size: 1rem;
}

/* Referral Feedback */
.referral-feedback {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    display: none;
}

.referral-feedback.show {
    display: block;
}

.referral-feedback.success {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.referral-feedback.error {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.referral-feedback.loading {
    background-color: #e0e7ff;
    border-left: 4px solid #667eea;
    color: #3730a3;
}

.referral-feedback i {
    margin-right: 8px;
}

/* File Item */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #e1e4ee;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    border-color: #667eea;
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.file-icon {
    font-size: 28px;
    color: #667eea;
    transition: all 0.2s ease;
}

.file-item:hover .file-icon {
    transform: scale(1.1);
}

.file-name {
    font-size: 0.95rem;
    color: #1f2a37;
    font-weight: 500;
}

/* File Remove Button */
.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 6px 12px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.file-remove:hover {
    background-color: #fee;
    color: #a71d2a;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 24px;
        border-radius: 10px;
    }

    .register-title {
        font-size: 1.75rem;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .login-label {
        font-size: 0.85rem;
    }

    .login-input {
        padding: 11px 14px;
        font-size: 0.9rem;
    }

    .login-input-icon {
        padding: 11px 14px;
    }

    .login-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .required-text {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .eshop-toggle-container {
        padding: 16px;
    }

    .toggle-label {
        font-size: 0.9rem;
    }

    .toggle-description {
        font-size: 0.8rem;
    }

    .upload-area {
        padding: 24px 16px;
    }

    .upload-icon {
        font-size: 42px;
    }

    .upload-text {
        font-size: 0.9rem;
    }

    .upload-hint {
        font-size: 0.8rem;
    }

    .file-item {
        padding: 10px 12px;
    }

    .file-icon {
        font-size: 24px;
    }

    .file-name {
        font-size: 0.85rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-container {
        padding: 28px;
    }

    .eshop-toggle-container {
        padding: 18px;
    }
}
