/* Custom Registration Form Styles */

/* Cropper.js styling */
.cropper-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 10px 0;
}

.crop-container {
    margin-top: 15px;
}

.crop-controls {
    text-align: center;
    margin-top: 15px;
}

.crop-result {
    text-align: center;
    margin-top: 15px;
}

.cropped-preview {
    max-width: 200px;
    height: auto;
    border: 2px solid #2c5530;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Ensure consistent styling for all input types */
.sign-section .form-inner input[type="text"],
.sign-section .form-inner input[type="email"],
.sign-section .form-inner input[type="tel"],
.sign-section .form-inner input[type="password"],
.sign-section .form-inner input[type="number"],
.sign-section .form-inner select {
    display: block;
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 30px;
    color: #222;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    transition: all 500ms ease;
}

.sign-section .form-inner input[type="text"]:focus,
.sign-section .form-inner input[type="email"]:focus,
.sign-section .form-inner input[type="tel"]:focus,
.sign-section .form-inner input[type="password"]:focus,
.sign-section .form-inner input[type="number"]:focus,
.sign-section .form-inner select:focus {
    border-color: #2c5530;
    outline: none;
}

/* Select box specific styling */
.sign-section .form-inner select {
    cursor: pointer;
    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 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sign-section .form-inner select option {
    color: #222;
    background: #fff;
    padding: 8px 12px;
}

/* Password toggle eye icon styling */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 42px;
    cursor: pointer;
    color: #999;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #2c5530;
}

/* Ensure form group has proper spacing */
.sign-section .form-inner .form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Label styling */
.sign-section .form-inner .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

/* Placeholder styling */
.sign-section .form-inner input::placeholder {
    color: #999;
    font-size: 14px;
}

/* Required field indicator */
.sign-section .form-inner .form-group label:after {
    content: " *";
    color: #dc3545;
    font-weight: normal;
}

/* Remove asterisk for optional fields */
.sign-section .form-inner .form-group label.optional:after {
    content: "";
}

/* Login page specific styles */
.sign-section .form-inner .other-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sign-section .form-inner .other-option .check-box {
    display: flex;
    align-items: center;
    margin: 0;
}

.sign-section .form-inner .other-option .forgot-password a {
    color: #2c5530;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sign-section .form-inner .other-option .forgot-password a:hover {
    color: #1a3319;
    text-decoration: underline;
}

/* Password field styling */
.password-field {
    position: relative;
}

.password-input {
    padding-right: 45px !important;
}

.password-hint {
    color: #999;
    font-weight: normal;
}

/* Logo upload styling */
.logo-hint {
    color: #6c757d;
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

/* Crop container styling */
.crop-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 15px;
}

.crop-wrapper {
    max-height: 500px;
    min-height: 300px;
    border: 2px dashed #78EB54;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.crop-image {
    max-width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.3s;
}

.crop-image.ready {
    opacity: 1;
}

.crop-controls {
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.zoom-controls {
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.rotation-controls {
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.action-controls {
    text-align: center;
}

.crop-controls .btn {
    margin: 2px;
    min-width: 80px;
}

.crop-controls .btn i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .crop-controls .btn {
        font-size: 12px;
        padding: 4px 8px;
        min-width: 70px;
    }
    
    .crop-controls .btn i {
        margin-right: 3px;
    }
}

.crop-result {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    margin-top: 15px;
}

.crop-preview {
    text-align: center;
}

.cropped-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #78EB54;
    border-radius: 8px;
}

.cropper-container {
    max-height: 400px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.cropper-view-box {
    outline: 1px solid #39f;
    outline-color: rgba(51, 153, 255, 0.75);
}

.cropper-face {
    background-color: inherit !important;
}

.cropper-line {
    background-color: #39f;
}

.cropper-point {
    background-color: #39f;
    width: 8px;
    height: 8px;
}

.crop-container {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.logo-hint {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Button styling */
.btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.btn:first-child {
    margin-left: 0;
}

.btn-primary {
    background-color: #78EB54;
    border-color: #78EB54;
    color: #000;
}

.btn-primary:hover {
    background-color: #45A735;
    border-color: #45A735;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    margin-left: 8px;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* OTP input styling */
.otp-input {
    text-align: center !important;
    font-size: 24px !important;
    letter-spacing: 0.5em !important;
    font-weight: bold !important;
}

/* Error box styling */
.error-box {
    padding: 60px 20px;
}

.error-box h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.error-box p {
    color: #666;
    margin-bottom: 20px;
}

/* Link button styling */
.link-btn {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.link-btn:hover {
    color: #0056b3;
}

.link-btn:disabled {
    color: #6c757d;
    cursor: not-allowed;
    text-decoration: none;
}