/* Form element styling for consistent brand colors across the site */

/* Input, select and textarea focus */
input:focus,
select:focus,
textarea:focus {
    border-color: #f39c12 !important;
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
    outline: none !important;
}

/* Form control base styles */
.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

/* Custom checkbox styling */
input[type="checkbox"] {
    position: relative;
    width: 18px;
    height: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background-color: #f39c12;
    border-color: #f39c12;
}

input[type="checkbox"]:checked::after {
    content: '\2713';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Submit button styling */
.btn-primary,
.btn-default,
input[type="submit"],
button[type="submit"] {
    background-color: #f39c12;
    border-color: #f39c12;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-default:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:focus,
.btn-default:focus,
input[type="submit"]:focus,
button[type="submit"]:focus {
    background-color: #e67e22;
    border-color: #e67e22;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

.btn-primary:active,
.btn-default:active,
input[type="submit"]:active,
button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Login specific styling */
.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Remember me checkbox label */
.checkbox label {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

/* External login buttons */
.btn-social {
    margin-bottom: 10px;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    color: white;
}

.btn-facebook {
    background-color: #3b5998;
    border-color: #3b5998;
}

.btn-google {
    background-color: #dd4b39;
    border-color: #dd4b39;
}

.btn-facebook:hover, .btn-google:hover {
    opacity: 0.9;
}
