/* Login/Register System Styles */

.lcr-auth-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Sections */
.lcr-auth-section {
    background: #ffffff;
    padding: 40px;
    
}
.lcr-auth-section.lcr-login-section {
    border-right: 1px solid #e2e8f0;
}
.lcr-auth-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.lcr-auth-subtitle {
    color: #64748b;
    font-size: 16px;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* Form Styles */
.lcr-auth-form {
    width: 100%;
}

.lcr-form-group {
    margin-bottom: 20px;
    position: relative;
}
.lcr-insurance-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lcr-form-group input,
.lcr-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.lcr-form-group input:focus,
.lcr-form-group select:focus {
    outline: none;
    border-color: #8a6d2b;
    box-shadow: 0 0 0 3px rgba(176, 123, 31, 0.1);
}
.lcr-form-group select {
    padding: 0px !important;
}
.lcr-form-group input::placeholder {
    color: #a0aec0;
}

/* Password Toggle */
.lcr-password-group {
    position: relative;
}

.lcr-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #64748b;
    font-size: 18px;
}

.lcr-password-toggle:hover {
    color: #2d3748;
}

/* Button Styles */
.lcr-auth-btn {
    width: 100%;
    padding: 14px 24px;
    background: #8a6d2b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.lcr-auth-btn:hover {
    background: #8f6113;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(176, 123, 31, 0.3);
}

.lcr-auth-btn:active {
    transform: translateY(0);
}

/* Forgot Password */
.lcr-forgot-password {
    margin-top: 20px;
    text-align: left;
}

.lcr-forgot-password p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.lcr-forgot-password a,
#lcr-back-to-login {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

.lcr-forgot-password a:hover,
#lcr-back-to-login:hover {
    text-decoration: underline;
}

#lcr-back-to-login {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
}

/* Register Tabs */
.lcr-register-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    background: #f7fafc;
    border-radius: 8px;
    padding: 4px;
}

.lcr-tab-option {
    flex: 1;
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lcr-tab-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lcr-tab-option span {
    display: block;
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lcr-tab-option.active span,
.lcr-tab-option input[type="radio"]:checked + span {
    background: #ffffff;
    color: #1a202c;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Register Forms */
.lcr-register-form {
    display: none;
}

.lcr-register-form.active {
    display: block;
}

/* Company Form Sections */
.lcr-company-section,
.lcr-contact-section,
.lcr-account-section,
.lcr-business-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.lcr-business-section {
    border-bottom: none;
    margin-bottom: 24px;
}

.lcr-company-section h4,
.lcr-contact-section h4,
.lcr-account-section h4,
.lcr-business-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
}

/* File Upload */
.lcr-form-group input[type="file"] {
    padding: 10px;
    border: 2px solid #cbd5e0;
    background: #f7fafc;
    cursor: pointer;
}

.lcr-form-group input[type="file"]:focus {
    border-color: #8a6d2b;
    border-style: solid;
}

.lcr-form-group label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

/* Radio Groups */
.lcr-radio-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.lcr-radio-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    color: #2d3748;
}

.lcr-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    margin-bottom: 0;
}

/* Insurance Section */
.lcr-insurance-section label {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    display: block;
}

/* Checkbox Groups */
.lcr-checkbox-group {
    margin-top: 24px;
}

.lcr-checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    cursor: pointer;
    color: #2d3748;
    line-height: 1.5;
    gap: 12px;
}

.lcr-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.lcr-checkbox-group a {
    color: #3182ce;
    text-decoration: none;
}

.lcr-checkbox-group a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.lcr-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.lcr-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #8a6d2b;
    border-radius: 50%;
    animation: lcr-spin 1s linear infinite;
}

@keyframes lcr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.lcr-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1001;
    min-width: 300px;
}

.lcr-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lcr-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Logged In State */
.lcr-auth-logged-in {
    text-align: center;
    padding: 60px 40px;
}

.lcr-auth-logged-in h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 20px;
}

.lcr-auth-logged-in .lcr-auth-btn {
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lcr-auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px 16px;
    }
    
    .lcr-auth-section {
        padding: 24px 20px;
    }
    
    .lcr-auth-section h2 {
        font-size: 24px;
    }
    
    .lcr-register-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .lcr-radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .lcr-message {
        top: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .lcr-auth-container {
        padding: 16px;
    }
    
    .lcr-auth-section {
        padding: 20px 16px;
    }
    
    .lcr-form-group input,
    .lcr-form-group select {
        padding: 12px 14px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .lcr-auth-btn {
        padding: 12px 20px;
    }
}

/* Print Styles */
@media print {
    .lcr-auth-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .lcr-auth-btn {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}