/* File: assets/css/custom-login.css */
.readysms-form-wrapper { /* Replaced #readysms-form for more flexibility */
    max-width: 400px;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    font-family: inherit; /* Inherit from theme */
}

.readysms-form-wrapper h3 {
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #333;
}

.readysms-section {
    margin-bottom: 20px;
}

.readysms-form-field {
    margin-bottom: 15px;
    text-align: right; /* For RTL labels */
}

.readysms-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

.readysms-form-wrapper input[type="text"],
.readysms-form-wrapper input[type="tel"],
.readysms-form-wrapper input[type="password"] { /* Added type=tel */
    width: 100%;
    padding: 12px;
    margin: 0; /* Removed margin from original global input style */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.readysms-form-wrapper input[type="text"]:focus,
.readysms-form-wrapper input[type="tel"]:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 0.1rem rgba(66, 133, 244, 0.25);
    outline: none;
}


/* General button style for the form */
.readysms-button {
    display: inline-block;
    background-color: #4285f4; /* Default Blue */
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.readysms-button:hover {
    background-color: #3367d6; /* Darker Blue */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.readysms-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}


/* Specific button overrides if needed, otherwise general is fine */
#readysms-send-otp-button {
    /* background-color: #4285f4; */ /* Uses .readysms-button */
}
#readysms-send-otp-button:hover {
    /* background-color: #3367d6; */
}

#readysms-verify-otp-button {
     /* background-color: #28a745; */ /* Green for verify */
}
#readysms-verify-otp-button:hover {
    /* background-color: #218838; */ /* Darker Green */
}


.readysms-google-login-button {
    background-color: #DB4437; /* Google Red */
    display: flex;
    align-items: center;
    justify-content: center;
}

.readysms-google-login-button:hover {
    background-color: #c23321; /* Darker Google Red */
    color: white;
}
.readysms-google-login-button img {
    margin-right: 8px; /* RTL: Google logo on the right of text */
    margin-left: 0;
}


#readysms-phone-number, #readysms-otp-code {
    border: 1px solid #ccc; /* Original styles had green/blue borders, unified here */
}
#readysms-phone-number:focus, #readysms-otp-code:focus {
    border-color: #4CAF50; /* Green focus like ReadyStudio branding */
}

.readysms-message {
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: right;
}
.readysms-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.readysms-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.readysms-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    margin: 20px 0;
    font-size: 0.9em;
}
.readysms-separator::before,
.readysms-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}
.readysms-separator span {
    padding: 0 10px;
}

.readysms-logged-in-message {
    text-align: center;
    padding: 20px;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 5px;
    color: #005280;
}
.readysms-logged-in-message strong {
    color: #003a5c;
}
.readysms-logged-in-message a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
}
.readysms-logged-in-message a:hover {
    text-decoration: underline;
}

.readysms-form-logo {
    margin-bottom: 20px;
    text-align: center;
}

.readysms-form-logo img {
    max-width: 150px; /* یا هر اندازه‌ای که مناسب می‌دانید */
    max-height: 75px; /* یا هر اندازه‌ای که مناسب می‌دانید */
    width: auto;
    height: auto;
}
