/* SMS Login Styles */
.sms-login-card {
    max-width: 400px;
    margin: 2rem auto;
}

.verification-code-input {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-family: monospace;
}

.sms-step {
    min-height: 200px;
}

.sms-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.phone-input {
    font-size: 1.1rem;
}

.sms-error {
    border-left: 4px solid #dc3545;
    background-color: #f8d7da;
}

.sms-success {
    border-left: 4px solid #28a745;
    background-color: #d4edda;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .sms-login-card {
        margin: 1rem;
    }
    
    .verification-code-input {
        font-size: 1.2rem;
        letter-spacing: 0.3rem;
    }
    
    /* Ensure forms are mobile-friendly */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Make buttons more touch-friendly */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* Animation for step transitions */
.sms-step-transition {
    transition: opacity 0.3s ease-in-out;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* Hide Connection & Security menu for all portal users */
a[href="/my/security"] {
    display: none !important;
}

/* Also hide any parent containers that might contain the security link */
.o_portal_docs a[href="/my/security"] {
    display: none !important;
}

/* Add JavaScript-based detection for SMS users */
body[data-sms-user="true"] a[href="/my/security"] {
    display: none !important;
}
