/* Custom Authentication Styles - Salesmedia */
/* Brand Color: #fe0000 */

/* Password Toggle */
.password-toggle {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    z-index: 10;
    font-size: 18px;
}

.password-toggle-icon:hover {
    color: #495057;
}

.password-toggle .form-control {
    padding-right: 50px !important;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
    height: auto !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #fe0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 0, 0, 0.25) !important;
}

.form-control::placeholder {
    color: #adb5bd !important;
    opacity: 0.8 !important;
}

/* Form Labels */
label,
.form-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #344767 !important;
    margin-bottom: 0.5rem !important;
}

/* Form Groups Spacing */
.mb-3 {
    margin-bottom: 1rem !important;
}

/* Card Styling */
.card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    border-radius: 15px !important;
    overflow: hidden;
}

.card-header {
    background: #fe0000 !important;
    background-color: #fe0000 !important;
    background-image: none !important;
    color: white !important;
    padding: 2rem 1.5rem !important;
    border-bottom: none !important;
}

.card-header h4 {
    color: white !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
}

.card-header p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 0 !important;
}

.card-body {
    padding: 2rem 1.5rem !important;
}

/* Button Primary - Salesmedia Red */
.btn.btn-primary,
button.btn-primary,
.btn-primary {
    background: #fe0000 !important;
    background-color: #fe0000 !important;
    background-image: none !important;
    border: none !important;
    border-color: #fe0000 !important;
    border-radius: 10px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.btn.btn-primary:hover,
button.btn-primary:hover,
.btn-primary:hover {
    background: #e00000 !important;
    background-color: #e00000 !important;
    background-image: none !important;
    border-color: #e00000 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(254, 0, 0, 0.3) !important;
}

.btn.btn-primary:focus,
.btn.btn-primary:active,
button.btn-primary:focus,
button.btn-primary:active,
.btn-primary:focus,
.btn-primary:active {
    background: #fe0000 !important;
    background-color: #fe0000 !important;
    background-image: none !important;
    border-color: #fe0000 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 0, 0, 0.25) !important;
}

/* Form Control Large */
.form-control.form-control-lg,
.form-control-lg {
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
}

.form-control.form-control-lg:focus,
.form-control-lg:focus {
    border-color: #fe0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 0, 0, 0.25) !important;
}

/* File Input Styling */
input[type="file"].form-control {
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
}

/* Select Dropdown Arrow Color */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23344767' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* Select2 Styling */
.select2-container--default .select2-selection--single {
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #344767 !important;
    line-height: normal !important;
    padding: 0 !important;
    font-size: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #adb5bd !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #fe0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 0, 0, 0.25) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #fe0000 !important;
}

.select2-dropdown {
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #fe0000 !important;
    outline: none !important;
}

/* Form Switch - Red Toggle (Salesmedia Brand Color) */
.form-switch .form-check-input,
.form-check.form-switch .form-check-input,
input[type="checkbox"].form-check-input {
    background-color: #d1d5db !important;
    border-color: #d1d5db !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:checked,
.form-check.form-switch .form-check-input:checked,
input[type="checkbox"].form-check-input:checked {
    background-color: #fe0000 !important;
    border-color: #fe0000 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:focus,
.form-check.form-switch .form-check-input:focus,
input[type="checkbox"].form-check-input:focus {
    border-color: #fe0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 0, 0, 0.25) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e") !important;
}

/* Regular Checkbox - Grey to Red */
.form-check-input[type="checkbox"]:not(.form-switch .form-check-input) {
    border-color: #d1d5db !important;
    background-color: white !important;
    border-width: 2px !important;
}

.form-check-input[type="checkbox"]:not(.form-switch .form-check-input):checked {
    background-color: #fe0000 !important;
    border-color: #fe0000 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input[type="checkbox"]:not(.form-switch .form-check-input):focus {
    border-color: #fe0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 0, 0, 0.25) !important;
}

/* Text Primary - Salesmedia Red */
.text-primary,
a.text-primary {
    color: #fe0000 !important;
}

a.text-primary:hover,
a.text-primary:focus {
    color: #e00000 !important;
}

/* Card Footer */
.card-footer {
    background-color: #f8f9fa !important;
    padding: 1.5rem !important;
    border-top: 1px solid #e9ecef !important;
}

/* Input Icon Styling */
.input-group-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8898aa;
    z-index: 5;
    pointer-events: none;
    font-size: 18px;
}

.form-control-with-icon {
    padding-left: 50px !important;
    padding-right: 15px !important;
}

.form-control-with-icon::placeholder {
    color: #adb5bd !important;
    opacity: 1 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* Auth Page Background */
.auth-page-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
}

