/* LMS Registration Plugin Styles */

/* Form Wrapper */
.lms-login-form-wrapper,
.lms-registration-form-wrapper,
.lms-profile-form-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Form Title */
.lms-form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

/* Form Groups */
.lms-form-group {
    margin-bottom: 20px;
}

.lms-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.lms-col-half {
    flex: 1;
}

/* Labels */
.lms-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.lms-form-group label .required {
    color: #e74c3c;
}

/* Form Controls */
.lms-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f9f9f9;
}

/* Password Input Wrapper */
.lms-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lms-password-input-wrapper .lms-form-control {
    padding-right: 45px; /* Make room for toggle button */
}

.lms-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.3s;
    z-index: 10;
}

.lms-toggle-password:hover {
    color: #4CAF50;
}

.lms-toggle-password:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
    border-radius: 4px;
}

.lms-eye-icon {
    width: 20px;
    height: 20px;
    display: none;
}

.lms-eye-closed {
    display: block;
}

.lms-toggle-password.showing .lms-eye-closed {
    display: none;
}

.lms-toggle-password.showing .lms-eye-open {
    display: block;
}

.lms-form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background-color: #fff;
}

.lms-form-control.error {
    border-color: #e74c3c;
}

/* Field Errors */
.lms-field-error {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

/* Form Errors/Success */
.lms-form-errors,
.lms-form-success {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.lms-form-errors {
    background-color: #fee;
    border: 1px solid #fcc;
}

.lms-form-errors .lms-error {
    color: #c33;
    margin: 0;
    padding: 5px 0;
}

.lms-form-success {
    background-color: #efd;
    border: 1px solid #cfc;
    color: #060;
}

/* Buttons */
.lms-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.lms-btn-primary {
    background-color: #4CAF50;
    color: white;
}

.lms-btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.lms-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.lms-btn-secondary:hover {
    background-color: #5a6268;
}

.lms-btn-google {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lms-btn-google:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

.lms-google-icon {
    width: 18px;
    height: 18px;
}

.lms-btn-facebook {
    background-color: #1877F2;
    color: #fff;
    border: 1px solid #1877F2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lms-btn-facebook:hover {
    background-color: #145dbf;
    border-color: #145dbf;
    color: #fff;
}

.lms-facebook-icon {
    width: 18px;
    height: 18px;
}

/* Checkbox Groups */
.lms-checkbox-group label,
.lms-remember-me label,
.lms-terms label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.lms-checkbox-group input[type="checkbox"],
.lms-remember-me input[type="checkbox"],
.lms-terms input[type="checkbox"] {
    margin-right: 8px;
}

/* Form Separator */
.lms-form-separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.lms-form-separator span {
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.lms-form-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

/* Form Links */
.lms-form-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.lms-form-links a {
    color: #4CAF50;
    text-decoration: none;
}

.lms-form-links a:hover {
    text-decoration: underline;
}

.lms-form-links .separator {
    margin: 0 10px;
    color: #999;
}

/* Password Strength Indicator */
.lms-password-strength {
    font-size: 13px;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    text-align: center;
}

.lms-password-strength.weak {
    background-color: #fee;
    color: #c33;
}

.lms-password-strength.medium {
    background-color: #fef5e7;
    color: #f39c12;
}

.lms-password-strength.strong {
    background-color: #efd;
    color: #27ae60;
}

/* Profile Info */
.lms-profile-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.lms-profile-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.lms-profile-field {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.lms-profile-field:last-child {
    border-bottom: none;
}

.lms-profile-field label {
    font-weight: 600;
    color: #555;
    width: 150px;
    flex-shrink: 0;
}

.lms-profile-field span {
    color: #333;
}

/* Status Indicators */
.lms-status-active {
    color: #27ae60;
    font-weight: 600;
}

.lms-status-inactive {
    color: #e74c3c;
    font-weight: 600;
}

/* Profile Actions */
.lms-profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Notice */
.lms-notice {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lms-login-form-wrapper,
    .lms-registration-form-wrapper,
    .lms-profile-form-wrapper {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .lms-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .lms-profile-field {
        flex-direction: column;
    }
    
    .lms-profile-field label {
        width: auto;
        margin-bottom: 5px;
    }
    
    .lms-profile-actions {
        flex-direction: column;
    }
    
    .lms-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .lms-form-title {
        font-size: 24px;
    }
    
    .lms-login-form-wrapper,
    .lms-registration-form-wrapper,
    .lms-profile-form-wrapper {
        margin: 10px;
        padding: 20px 15px;
    }
}

/* Loading States */
.lms-form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.lms-form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: lms-spin 1s linear infinite;
}

@keyframes lms-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.lms-form-control:focus,
.lms-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .lms-login-form-wrapper,
    .lms-registration-form-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .lms-btn {
        display: none;
    }
}