/* SMS Login Frontend Styles */

#sms-login-container {
    margin-top: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

#sms-login-form {
    background: #fff;
    padding: 26px 24px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

#sms-login-form p {
    margin-bottom: 16px;
    box-sizing: border-box;
}

#sms-login-form p.submit {
    margin-bottom: 0;
    margin-top: 16px;
}

#sms-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

#sms-verification-code {
    letter-spacing: 0.5em;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.sms-timer-container {
    text-align: center;
    margin: 16px 0;
}

#sms-timer {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f1;
    border-radius: 4px;
    font-weight: 600;
    color: #2271b1;
    font-size: 14px;
    line-height: 1.5;
}

#sms-timer.expired {
    background: #fcf0f1;
    color: #d63638;
}

.sms-resend-container {
    text-align: center;
    margin: 16px 0;
    width: 100%;
    box-sizing: border-box;
}

#sms-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#sms-account-selector {
    margin: 20px 0;
}

#sms-account-list {
    margin-top: 15px;
}

.sms-account-item {
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.sms-account-item:hover {
    border-color: #2271b1;
    background: #f6f7f7;
}

.sms-account-item.selected {
    border-color: #2271b1;
    background: #f0f6fc;
}

.sms-account-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.sms-account-email {
    color: #666;
    font-size: 14px;
}

#sms-login-messages {
    margin-top: 20px;
}

.sms-message {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-left: 4px solid #72aee6;
    background: #f0f6fc;
    border-radius: 0 4px 4px 0;
    box-sizing: border-box;
}

.sms-message.error {
    border-left-color: #d63638;
    background: #fcf0f1;
    color: #d63638;
}

.sms-message.success {
    border-left-color: #00a32a;
    background: #edfaef;
    color: #00a32a;
}

#sms-login-form p.submit {
    width: 100%;
    box-sizing: border-box;
    margin: 16px 0 0 0 !important;
    padding: 0;
    text-align: center;
}

#sms-login-btn:disabled,
#sms-verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading spinner */
.sms-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: sms-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes sms-spin {
    to { transform: rotate(360deg); }
}

/* Hide standard login when SMS only */
.sms-only-mode #loginform {
    display: none;
}

/* Mobile responsive */
@media screen and (max-width: 600px) {
    #sms-login-form {
        padding: 20px 16px;
    }
}

/* RTL Support */
body.rtl #sms-login-messages .sms-message {
    border-left: none;
    border-right: 4px solid #72aee6;
    border-radius: 4px 0 0 4px;
}

body.rtl #sms-login-messages .sms-message.error {
    border-right-color: #d63638;
}

body.rtl #sms-login-messages .sms-message.success {
    border-right-color: #00a32a;
}

body.rtl .sms-loading {
    margin-left: 0;
    margin-right: 8px;
}

