/**
 * Cricboss Mobile Auth Styles - Enhanced UI
 */

/* Form Container */
.cricboss-mobile-auth-form-container {
    max-width: 100%;
/*     margin: 20px auto; */
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* .cricboss-mobile-auth-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    border: 1px solid #e8e8e8;
} */

/* Already Logged In Message */
.cricboss-already-logged-in {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
}

/* Form Groups */
.cricboss-form-group {
    margin-bottom: 15px;
    width: 100%;
}

.cricboss-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
    font-size: 15px;
}

/* Remember Me Checkbox */
.cricboss-remember-me {
    margin-top: -5px;
    margin-bottom: 20px;
}

.remember-me-label {
    display: flex !important;
    align-items: center;
    font-weight: 500 !important;
    cursor: pointer;
}

.remember-me-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.remember-me-label span {
    font-size: 1em;
	font-weight: 400;
    color: white;
}

/* Form Inputs */
.cricboss-form-group input[type="tel"],
.cricboss-form-group input[type="password"],
.cricboss-form-group input[type="text"] {
    width: 100%;
	padding: 13px 40px 13px 13px;
    background-color: #3d3d3d;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
	border: none !important;
	color: white;
}

.cricboss-form-group input:focus {
    outline: none !important;
	border: 1px solid #d8181d !important;
}

/* Telephone Input */
.cricboss-tel-input-container {
    position: relative;
}

.cricboss-tel-input-container.focused .iti__flag-container {
    border-color: #d8181d;
}

.iti {
    width: 100%;
}

.iti__flag-container {
    border-radius: 4px 0 0 4px;
    overflow: hidden;
}

.iti__selected-flag {
    padding: 0 12px 0 12px !IMPORTANT;
    background-color: #3d3d3d;
/*     border-right: 1px solid #ccc; */
}

.iti__country-list {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    z-index: 99999; /* Make sure dropdown appears above everything */
	background-color: black;
}

.iti__country-list li:hover{
	background-color: #3D3D3D;
}

/* Error Messages */
.cricboss-error-message {
    color: #e53935;
    font-size: 14px;
    margin-top: 4px;
    min-height: 20px;
    font-weight: 500;
}

/* Password Container - Fixed Width */
.cricboss-password-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* .cricboss-password-container.focused {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    border-radius: 10px;
	border-color: #d8181d !important;
}

.cricboss-password-container.focused input {
    border-color: #d8181d !important;
} */


.cricboss-password-container input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 40px 13px 13px;
    background-color: #3d3d3d;
    border: none;
    border-radius: 10px;
	color: white;
}

.cricboss-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
    transition: color 0.2s;
}

.cricboss-password-toggle:hover {
    color: #d8181d;
}

/* Submit Button */
.cricboss-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 10px !important;
    background-color: #D8181D;
    color: white;
    border: none !important;
    border-radius: 10px;
    font-size: 1.2em !important;
	font-family: montserrat;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cricboss-submit-btn:hover {
    background-color: #d8181d !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cricboss-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cricboss-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.cricboss-submit-btn .btn-loader {
    margin-left: 10px;
}


#cricboss-fp-next-btn{
	padding: 8px !important;
}

#cricboss-fp-next-btn:hover{
background-color: #D8181D !important;
	color: white !important;
}

/* Response Message */
.cricboss-response-message {
/*     margin-top: 20px;
    padding: 12px; */
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.cricboss-response-message.error {
    background-color: #fdecea;
    color: #d32f2f;
    border: 1px solid #f5c6cb;
}

.cricboss-response-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c3e6cb;
}

/* Spinner Animation */
.spinning {
    animation: spin 1.5s linear infinite;
}

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

/* Input Error Styles */
.iti input.error,
input.error {
    border-color: #e53935;
}

/* Placeholder text styles */
::placeholder {
    color: #999;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #999;
}

::-ms-input-placeholder {
    color: #999;
}

/* Responsive Styles */
@media screen and (max-width: 600px) {
/*     .cricboss-mobile-auth-form-container {
        padding: 15px;
        margin: 15px auto;
    } */
    
/*     .cricboss-mobile-auth-form {
        padding: 20px 15px;
    } */
    
    .cricboss-form-group input[type="tel"],
    .cricboss-form-group input[type="password"],
    .cricboss-form-group input[type="text"] {
        padding: 10px;
    }
    
    .cricboss-submit-btn {
        padding: 12px;
    }
}

.cricboss-auth-form-container .cricboss-form-message {
    padding: 10px 15px;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: left;
}

.cricboss-auth-form-container .cricboss-form-message.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
}

.cricboss-auth-form-container .cricboss-form-message.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
}

/* Style for the password toggle icon if it's part of the form message structure (adjust if not) */
.cricboss-auth-form-container .password-input-wrapper .dashicons {
    cursor: pointer;
    padding: 5px;
}

/* Ensure form rows have some spacing */
.cricboss-auth-form-container .form-row {
    margin-bottom: 15px;
}

/* General input styling (optional, adjust to your theme) */
.cricboss-auth-form-container .input-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.cricboss-auth-form-container .button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.cricboss-auth-form-container .button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
} 